chore(emqx_listeners): fix clauses for dialyzer

This commit is contained in:
z8674558 2021-03-01 13:02:53 +09:00 committed by tigercl
parent 6ea4501de4
commit 64ac20eec5
1 changed files with 1 additions and 2 deletions

View File

@ -197,9 +197,8 @@ restart_listener(Proto, ListenOn, Options) when Proto == https; Proto == wss ->
restart_listener(Proto, ListenOn, _Opts) -> restart_listener(Proto, ListenOn, _Opts) ->
esockd:reopen(Proto, ListenOn). esockd:reopen(Proto, ListenOn).
ok(ok) -> ok;
ok({ok, _}) -> ok; ok({ok, _}) -> ok;
ok(Error) -> Error. ok(Other) -> Other.
%% @doc Stop all listeners. %% @doc Stop all listeners.
-spec(stop() -> ok). -spec(stop() -> ok).