summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-08-14 01:41:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-08-14 21:03:05 (GMT)
commit84120cca09002453649abf40e1873c4041247d64 (patch)
treedf6ac2bde7bf5703658277c0a91a7bcdf81f267d /diff.c
parentc5e64caaa9c45988b474765182a508f305f05e6b (diff)
downloadgit-84120cca09002453649abf40e1873c4041247d64.zip
git-84120cca09002453649abf40e1873c4041247d64.tar.gz
git-84120cca09002453649abf40e1873c4041247d64.tar.bz2
diff.c: simplify caller of emit_line_0
Due to the previous condition we know "set_sign != NULL" at that point. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/diff.c b/diff.c
index ae13149..f6df18a 100644
--- a/diff.c
+++ b/diff.c
@@ -1202,8 +1202,7 @@ static void emit_line_ws_markup(struct diff_options *o,
emit_line_0(o, set, 0, reset, sign, line, len);
else if (!ws) {
/* Emit just the prefix, then the rest. */
- emit_line_0(o, set_sign ? set_sign : set, !!set_sign, reset,
- sign, "", 0);
+ emit_line_0(o, set_sign, !!set_sign, reset, sign, "", 0);
emit_line_0(o, set, 0, reset, 0, line, len);
} else if (blank_at_eof)
/* Blank line at EOF - paint '+' as well */