am: ignore return value of write_file()
commit1dad879a7b7b41381cf4ccf471dcab06993a131b
authorRené Scharfe <l.s.r@web.de>
Fri, 8 Jul 2016 09:08:05 +0000 (8 05:08 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Jul 2016 16:47:28 +0000 (8 09:47 -0700)
treebb1bf0561cb133131936399478386fb7c5529a9c
parentaabbd3f3c9dd17c414100d0e029f8a3d13673ab1
am: ignore return value of write_file()

write_file() either returns 0 or dies, so there is no point in checking
its return value.  The callers of the wrappers write_state_text(),
write_state_count() and write_state_bool() consequently already ignore
their return values.  Stop pretending we care and make them void.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/am.c