summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2017-09-25 16:27:57 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-26 12:55:59 +0900
commita1f3515da74504db0a046759d9ac1615a1d5f4b8 (patch)
tree69734aa73683db87c4c1eca0706e121588f333d6 /builtin
parentfiles-backend: prefer "0" for write_in_full() error check (diff)
downloadtgif-a1f3515da74504db0a046759d9ac1615a1d5f4b8.tar.xz
notes-merge: drop dead zero-write code
We call write_in_full() with a size that we know is greater than zero. The return value can never be zero, then, since write_in_full() converts such a failed write() into ENOSPC and returns -1. We can just drop this branch of the error handling entirely. Suggested-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Jeff King <peff@peff.net> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions