Skip to content

Commit

Permalink
Remove unused Guard clause
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeckie committed Feb 22, 2016
1 parent 737113b commit 72e5194
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/beaker/integrations/phoenix.ex
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ defmodule Beaker.Integrations.Phoenix do
end

defp ignore(%Plug.Conn{path_info: []}, _), do: false
defp ignore(%Plug.Conn{path_info: path_info}, ignore_path) when is_list(path_info) do
defp ignore(%Plug.Conn{path_info: path_info}, ignore_path) do
hd(path_info) == ignore_path
end
end
2 changes: 1 addition & 1 deletion test/lib/beaker/integrations/phoenix_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule Beaker.Integrations.PhoenixTest do
test "Skips for /beaker routes" do
before_count = Beaker.Counter.get("Phoenix:Requests")

conn = conn(:get, "/beaker/api/counters")
conn(:get, "/beaker/api/counters")
|> TestPipe.call([])
|> Plug.Conn.send_resp(200, "OK")

Expand Down

0 comments on commit 72e5194

Please sign in to comment.