aboutsummaryrefslogtreecommitdiff
path: root/diffcore-break.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-10-09 14:01:00 +0900
committerJunio C Hamano <gitster@pobox.com>2019-10-09 14:01:00 +0900
commit6e12570822a904e2be554b05755c08f4d24be7e9 (patch)
treeb6d276fd5205c5adb7a02c7bac6ba201b3ab3ac3 /diffcore-break.c
parent772cad0afb834b9af8ee56511dc3df4d6e2f011d (diff)
parent53d687bf5f8008abd52b92120c7e22d4d81bdc71 (diff)
downloadgit-6e12570822a904e2be554b05755c08f4d24be7e9.tar.xz
Merge branch 'ah/cleanups'
Miscellaneous code clean-ups. * ah/cleanups: git_mkstemps_mode(): replace magic numbers with computed value wrapper: use a loop instead of repetitive statements diffcore-break: use a goto instead of a redundant if statement commit-graph: remove a duplicate assignment
Diffstat (limited to 'diffcore-break.c')
-rw-r--r--diffcore-break.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/diffcore-break.c b/diffcore-break.c
index 875aefd3fe..9d20a6a6fc 100644
--- a/diffcore-break.c
+++ b/diffcore-break.c
@@ -286,17 +286,17 @@ void diffcore_merge_broken(void)
/* Peer survived. Merge them */
merge_broken(p, pp, &outq);
q->queue[j] = NULL;
- break;
+ goto next;
}
}
- if (q->nr <= j)
- /* The peer did not survive, so we keep
- * it in the output.
- */
- diff_q(&outq, p);
+ /* The peer did not survive, so we keep
+ * it in the output.
+ */
+ diff_q(&outq, p);
}
else
diff_q(&outq, p);
+next:;
}
free(q->queue);
*q = outq;