summaryrefslogtreecommitdiff
path: root/notes-utils.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2019-04-05 14:13:14 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-04-16 16:58:21 +0900
commit965cc517e57f01d8013fa7b10c1d5ce72ba3e272 (patch)
tree4a2db42b783e3bf09ed63e7a57637e4ce582a921 /notes-utils.c
parentserver-info: fix blind pointer arithmetic (diff)
downloadtgif-965cc517e57f01d8013fa7b10c1d5ce72ba3e272.tar.xz
server-info: simplify cleanup in parse_pack_def()
We have two exits from the function: either we jump to the out_stale label or not. But in both exits we repeat our cleanup, and the only difference is our return value. Let's just use a variable for the return value to avoid repeating ourselves. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes-utils.c')
0 files changed, 0 insertions, 0 deletions