Explorar o código

fix(dialyzer): remote the extra str/1

Shawn %!s(int64=4) %!d(string=hai) anos
pai
achega
cf3f2c3057
Modificáronse 1 ficheiros con 1 adicións e 8 borrados
  1. 1 8
      apps/emqx_connector/src/emqx_connector_mqtt.erl

+ 1 - 8
apps/emqx_connector/src/emqx_connector_mqtt.erl

@@ -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()])).