submodule--helper: do not call utf8_fprintf() unnecessarily
commitdc4b4a61baac86bb75b0bdffb9ca45e90c4e194d
authorJunio C Hamano <gitster@pobox.com>
Wed, 28 Jun 2017 20:38:48 +0000 (28 13:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Jun 2017 21:27:10 +0000 (28 14:27 -0700)
tree9d18510053e8853d3262b618f2448e501f205e1b
parent840ed141983718e0c5518a325534a5656797132a
submodule--helper: do not call utf8_fprintf() unnecessarily

The helper function utf8_fprintf(fp, ...) has exactly the same
effect to the output stream fp as fprintf(fp, ...) does, and the
only difference is that its return value counts in display columns
consumed (assuming that the payload is encoded in UTF-8), as opposed
to number of bytes.

There is no reason to call it unless the caller cares about its
return value.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c