expire_reflog(): return early if the reference has no reflog
commit2e376b3156ff30dcd359b7c424fcbdbab5ec7709
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 12 Dec 2014 08:56:45 +0000 (12 09:56 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Dec 2014 19:43:47 +0000 (12 11:43 -0800)
tree616f2e2ca0c1caa636ebfd0d078d12b533f2bc07
parent524127afbf8b98350bcebe3fc1f7600fce191716
expire_reflog(): return early if the reference has no reflog

There is very little cleanup needed if the reference has no reflog. If
we move the initialization of log_file down a bit, there's even less.
So instead of jumping to the cleanup code at the end of the function,
just do the cleanup and return inline.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reflog.c