Skip to content

Commit

Permalink
Ignore return of gproc
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaimonetti committed Mar 26, 2021
1 parent 7650e1d commit 005caf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/kazoo_events/src/kz_hooks_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ all_registered_rr() ->
-spec maybe_add_hook(tuple()) -> 'true'.
maybe_add_hook(Hook) ->
maybe_add_binding(Hook),
'true' = gproc:ensure_reg(Hook).
_ = gproc:ensure_reg(Hook),
'true'.

-spec maybe_add_binding(tuple()) -> 'ok'.
maybe_add_binding(?HOOK_REG) ->
Expand Down

0 comments on commit 005caf2

Please sign in to comment.