write_ref_sha1(): remove check for lock == NULL
commit8280bbebd1ecc4633b969a439ed4ca653d1bc958
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 2 Mar 2015 09:29:51 +0000 (2 10:29 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Mar 2015 20:35:36 +0000 (5 12:35 -0800)
tree0ccd3e867e1e6a57d217d8eaa817744841ba2c29
parent507d6aa5bf2fb9f56d0c7f70d4ff3b8177da9d8e
write_ref_sha1(): remove check for lock == NULL

None of the callers pass NULL to this function, and there doesn't seem
to be any usefulness to allowing them to do so.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c