strbuf: miniscule style fix
We write one SP on each side of an operator, even inside an [] pair that computes the array index. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
754884255b
commit
dce80bd18c
4
strbuf.c
4
strbuf.c
@ -505,8 +505,8 @@ int strbuf_getline(struct strbuf *sb, FILE *fp, int term)
|
|||||||
{
|
{
|
||||||
if (strbuf_getwholeline(sb, fp, term))
|
if (strbuf_getwholeline(sb, fp, term))
|
||||||
return EOF;
|
return EOF;
|
||||||
if (sb->buf[sb->len-1] == term)
|
if (sb->buf[sb->len - 1] == term)
|
||||||
strbuf_setlen(sb, sb->len-1);
|
strbuf_setlen(sb, sb->len - 1);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user