From e42e71dcf733d1d1efe7c33000b56f57ea3cf864 Mon Sep 17 00:00:00 2001 From: turtled Date: Fri, 7 Jul 2017 08:56:07 +0800 Subject: [PATCH] Format code --- src/emqttd_cli.erl | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/emqttd_cli.erl b/src/emqttd_cli.erl index 4132569e0..c73624493 100644 --- a/src/emqttd_cli.erl +++ b/src/emqttd_cli.erl @@ -482,11 +482,9 @@ listeners(["restart", Proto, ListenOn]) -> end, case emqttd_app:restart_listener({list_to_atom(Proto), ListenOn1, []}) of {ok, _Pid} -> - io:format("Restart ~s listen on ~s successfully.~n", - [list_to_atom(Proto), list_to_atom(ListenOn)]); + io:format("Restart ~s listen on ~s successfully.~n", [Proto, ListenOn]); {error, Error} -> - io:format("Failed to restart ~s listen on ~s, error:~p~n", - [list_to_atom(Proto), list_to_atom(ListenOn), Error]) + io:format("Failed to restart ~s listen on ~s, error:~p~n", [Proto, ListenOn, Error]) end; listeners(["stop", Proto, ListenOn]) -> @@ -496,11 +494,9 @@ listeners(["stop", Proto, ListenOn]) -> end, case emqttd_app:stop_listener({list_to_atom(Proto), ListenOn1, []}) of ok -> - io:format("Stop ~s on ~s successfully.~n", - [list_to_atom(Proto), list_to_atom(ListenOn)]); + io:format("Stop ~s on ~s successfully.~n", [Proto, ListenOn]); {error, Error} -> - io:format("Failed to stop ~s on ~s, error:~p~n", - [list_to_atom(Proto), list_to_atom(ListenOn), Error]) + io:format("Failed to stop ~s on ~s, error:~p~n", [Proto, ListenOn, Error]) end; listeners(_) ->