fix(logger): no need for special handling of empty string

when formating json logs, there is no need to handle empty strings
special, already covered by unicode handling
This commit is contained in:
Zaiming (Stone) Shi 2023-09-27 21:26:47 +02:00
parent 66d2107007
commit c8cbbff044
1 changed files with 0 additions and 4 deletions

View File

@ -224,10 +224,6 @@ best_effort_json_obj(Map, Config) ->
do_format_msg("~p", [Map], Config)
end.
json([], _) ->
"";
json(<<"">>, _) ->
"\"\"";
json(A, _) when is_atom(A) -> atom_to_binary(A, utf8);
json(I, _) when is_integer(I) -> I;
json(F, _) when is_float(F) -> F;