lock_file(): exit early if lockfile cannot be opened
commite31e949b9f9b5e6dcff42e2242cf1a6fb3686b91
authorMichael Haggerty <mhagger@alum.mit.edu>
Wed, 1 Oct 2014 10:28:18 +0000 (1 12:28 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Oct 2014 20:45:12 +0000 (1 13:45 -0700)
tree614d90b3ae196a0ab24ec13c5bebeeb944b007be
parent35ff08be099b36d0be855040a296f985d25dfd0a
lock_file(): exit early if lockfile cannot be opened

This is a bit easier to read than the old version, which nested part
of the non-error code in an "if" block.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Ronnie Sahlberg <sahlberg@google.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
lockfile.c