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>

Stefan Beller committed Aug 13, 2018 at 18:41 UTC 84120cca09002453649abf40e1873c4041247d64
1 file changed +1 -2
diff.c
+1 -2
@@ -1202,8 +1202,7 @@ static void emit_line_ws_markup(struct diff_options *o,
1202 emit_line_0(o, set, 0, reset, sign, line, len);
1203 else if (!ws) {
1204 /* Emit just the prefix, then the rest. */
1205 - emit_line_0(o, set_sign ? set_sign : set, !!set_sign, reset,
1206 - sign, "", 0);
1205 + emit_line_0(o, set_sign, !!set_sign, reset, sign, "", 0);
1206 emit_line_0(o, set, 0, reset, 0, line, len);
1207 } else if (blank_at_eof)
1208 /* Blank line at EOF - paint '+' as well */