From cf3f2c305737d1fe3aac2d0f7d8e7cbb2d909877 Mon Sep 17 00:00:00 2001 From: Shawn <506895667@qq.com> Date: Wed, 27 Oct 2021 11:43:25 +0800 Subject: [PATCH] fix(dialyzer): remote the extra str/1 --- apps/emqx_connector/src/emqx_connector_mqtt.erl | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/apps/emqx_connector/src/emqx_connector_mqtt.erl b/apps/emqx_connector/src/emqx_connector_mqtt.erl index 46aa13453..05eab7704 100644 --- a/apps/emqx_connector/src/emqx_connector_mqtt.erl +++ b/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()])).