chore: delete unused function clause

This commit is contained in:
Ivan Dyachkov 2022-10-14 10:46:11 +02:00
parent 5a8cab46a9
commit f2db35db39
1 changed files with 2 additions and 4 deletions

View File

@ -172,7 +172,5 @@ format_message_response(Messages) when is_list(Messages) ->
format_message_response(#message{id = ID}) -> format_message_response(#message{id = ID}) ->
#{id => emqx_guid:to_hexstr(ID)}. #{id => emqx_guid:to_hexstr(ID)}.
to_binary(Data) when is_binary(Data) -> to_binary(Term) ->
Data; list_to_binary(io_lib:format("~p", [Term])).
to_binary(Data) ->
list_to_binary(io_lib:format("~p", [Data])).