mailinfo: move check for metainfo_charset to convert_to_utf8()
commit28c6bfe94c83b810e5b23a2dc478c961c0534986
authorJunio C Hamano <gitster@pobox.com>
Sun, 18 Oct 2015 22:58:35 +0000 (18 15:58 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Oct 2015 22:50:17 +0000 (21 15:50 -0700)
tree30256120e56d1d97ae65f82548a72ed1ffe4c797
parent28be2d083cfce464dc898dfb78f2b957b7116277
mailinfo: move check for metainfo_charset to convert_to_utf8()

All callers of this function refrain from calling it when
mi->metainfo_charset is NULL; move the check to the callee,
as it already has a few conditions at its beginning to turn
it into a no-op.

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