aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-01-13 15:10:45 -0800
committerJunio C Hamano <gitster@pobox.com>2016-01-14 15:05:55 -0800
commitdce80bd18cae17b2d5645e3a9c40e76f905fd643 (patch)
treeb6dc363fb118a65c4174fe429fbc307513dd920b
parent754884255bb580df159e58defa81cdd30b5c430c (diff)
downloadgit-dce80bd18cae17b2d5645e3a9c40e76f905fd643.tar.gz
git-dce80bd18cae17b2d5645e3a9c40e76f905fd643.tar.xz
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>
-rw-r--r--strbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/strbuf.c b/strbuf.c
index d76f0aed8..b165d044a 100644
--- a/strbuf.c
+++ b/strbuf.c
@@ -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;
}