Skip to content

Commit 2a5ce7c

Browse files
committed
mailinfo: remove a no-op call convert_to_utf8(it, "")
The called function checks if the second parameter is either a NULL or an empty string at the very beginning and returns without doing anything. Remove the useless call. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 22f698c commit 2a5ce7c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

builtin/mailinfo.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -612,11 +612,6 @@ static void decode_header(struct strbuf *it)
612612
{
613613
if (decode_header_bq(it))
614614
return;
615-
/* otherwise "it" is a straight copy of the input.
616-
* This can be binary guck but there is no charset specified.
617-
*/
618-
if (metainfo_charset)
619-
convert_to_utf8(it, "");
620615
}
621616

622617
static void decode_transfer_encoding(struct strbuf *line)

0 commit comments

Comments
 (0)