fix(emqx.erl): Dialyzer warnings

This commit is contained in:
ayodele.akingbule 2020-11-20 13:14:37 +01:00 committed by Zaiming Shi
parent c8b866dc63
commit b9b20ba268
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ hook(HookPoint, Action, InitArgs) when is_list(InitArgs) ->
hook(HookPoint, Action, Filter, Priority) -> hook(HookPoint, Action, Filter, Priority) ->
emqx_hooks:add(HookPoint, Action, Filter, Priority). emqx_hooks:add(HookPoint, Action, Filter, Priority).
-spec(unhook(emqx_hooks:hookpoint(), function() | {module(), atom()}) -> ok). -spec(unhook(emqx_hooks:hookpoint(), fun() | {module(), atom()}) -> ok).
unhook(HookPoint, Action) -> unhook(HookPoint, Action) ->
emqx_hooks:del(HookPoint, Action). emqx_hooks:del(HookPoint, Action).