Skip to content

Commit

Permalink
strbuf: miniscule style fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Jan 14, 2016
1 parent 7548842 commit dce80bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions strbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,8 @@ int strbuf_getline(struct strbuf *sb, FILE *fp, int term)
{
if (strbuf_getwholeline(sb, fp, term))
return EOF;
if (sb->buf[sb->len-1] == term)
strbuf_setlen(sb, sb->len-1);
if (sb->buf[sb->len - 1] == term)
strbuf_setlen(sb, sb->len - 1);
return 0;
}

Expand Down

0 comments on commit dce80bd

Please sign in to comment.