fix(dialyzer): remote the extra str/1

This commit is contained in:
Shawn 2021-10-27 11:43:25 +08:00
parent e41736f5cb
commit cf3f2c3057
1 changed files with 1 additions and 8 deletions

View File

@ -179,11 +179,4 @@ basic_config(#{
}.
clientid(Id) ->
list_to_binary(lists:concat([str(Id), ":", node()])).
str(A) when is_atom(A) ->
atom_to_list(A);
str(B) when is_binary(B) ->
binary_to_list(B);
str(S) when is_list(S) ->
S.
list_to_binary(lists:concat([Id, ":", node()])).