@matheusbsbs / matheus-bagliano / commits / 793d37c17f
Fork 0

log_tree_diff: get rid of extra check for NULL

Get rid of needless check of 'parents' for NULL. The NULL case is already handled right above, and 'parents' is dereferenced without check below anyway. Signed-off-by: Sergey Organov <sorganov@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Sergey Organov committed Aug 28, 2020 at 14:05 UTC 793d37c17ffab46507e14c4547ad2edc9ba9e3fe
1 file changed +1 -1
log-tree.c
+1 -1
@@ -917,7 +917,7 @@ static int log_tree_diff(struct rev_info *opt, struct commit *commit, struct log
917 }
918
919 /* More than one parent? */
920 - if (parents && parents->next) {
920 + if (parents->next) {
921 if (opt->ignore_merges)
922 return 0;
923 else if (opt->combine_merges)