diff options
author | Teng Long <dyroneteng@gmail.com> | 2022-11-09 17:06:52 +0800 |
---|---|---|
committer | Taylor Blau <me@ttaylorr.com> | 2022-11-09 21:43:16 -0500 |
commit | eb792138075762bf41f9dea0bd56d0262cdcf506 (patch) | |
tree | 9e4c95c9051fa93fd166a5a39a4842c371667e3c /ident.c | |
parent | 3b08839926fcc7cc48cf4c759737c1a71af430c1 (diff) | |
download | git-eb792138075762bf41f9dea0bd56d0262cdcf506.tar.gz |
notes.c: cleanup 'strbuf_grow' call in 'append_edit'
Let's cleanup the unnecessary 'strbuf_grow' call in 'append_edit'. This
"strbuf_grow(&d.buf, size + 1);" is prepared for insert a blank line if
needed, but actually when inserting, "strbuf_insertstr(&d.buf, 0,
"\n");" will do the "grow" for us.
Signed-off-by: Teng Long <dyroneteng@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'ident.c')
0 files changed, 0 insertions, 0 deletions