Skip to content

Commit dce80bd

Browse files
committed
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 <[email protected]>
1 parent 7548842 commit dce80bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

strbuf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,8 @@ int strbuf_getline(struct strbuf *sb, FILE *fp, int term)
505505
{
506506
if (strbuf_getwholeline(sb, fp, term))
507507
return EOF;
508-
if (sb->buf[sb->len-1] == term)
509-
strbuf_setlen(sb, sb->len-1);
508+
if (sb->buf[sb->len - 1] == term)
509+
strbuf_setlen(sb, sb->len - 1);
510510
return 0;
511511
}
512512

0 commit comments

Comments
 (0)