From: Junio C Hamano Date: Wed, 13 Jan 2016 23:10:45 +0000 (-0800) Subject: strbuf: miniscule style fix X-Git-Tag: v2.8.0-rc0~91^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dce80bd18cae17b2d5645e3a9c40e76f905fd643;p=thirdparty%2Fgit.git 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 --- diff --git a/strbuf.c b/strbuf.c index d76f0aed85..b165d044ae 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; }