Skip to content

Commit df16e56

Browse files
committed
Fix Handler.get_opts/2
1 parent 0cde437 commit df16e56

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/hedwig/handler.ex

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ defmodule Hedwig.Handler do
2626
Gets opts for the given handler from the client config.
2727
"""
2828
def get_opts(client, handler) when is_atom(handler) do
29-
{_handler, opts} = Client.client_for(client.jid)
30-
|> Map.get(:handlers)
31-
|> List.keyfind(handler, 0, %{})
32-
29+
{_handler, opts} = client.handlers |> List.keyfind(handler, 0, %{})
3330
merge_client_opts(client, opts)
3431
end
3532

0 commit comments

Comments
 (0)