Skip to content

Commit

Permalink
Fix Handler.get_opts/2
Browse files Browse the repository at this point in the history
  • Loading branch information
scrogson committed Sep 8, 2015
1 parent 0cde437 commit df16e56
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/hedwig/handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ defmodule Hedwig.Handler do
Gets opts for the given handler from the client config.
"""
def get_opts(client, handler) when is_atom(handler) do
{_handler, opts} = Client.client_for(client.jid)
|> Map.get(:handlers)
|> List.keyfind(handler, 0, %{})

{_handler, opts} = client.handlers |> List.keyfind(handler, 0, %{})
merge_client_opts(client, opts)
end

Expand Down

0 comments on commit df16e56

Please sign in to comment.