chore: remove needless catch

Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
This commit is contained in:
JianBo He 2021-11-09 17:46:59 +08:00 committed by JianBo He
parent f2d99017a0
commit 7d06e48b4b
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ resovle_hookspec(HookSpecs) when is_list(HookSpecs) ->
Name0 ->
Name = try
binary_to_existing_atom(Name0, utf8)
catch T:R:_ -> {T,R}
catch T:R -> {T,R}
end,
case {lists:member(Name, AvailableHooks),
lists:member(Name, MessageHooks)} of