Skip to content

Commit

Permalink
Fix clause order in signature_fetch_fail
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmj committed Mar 12, 2016
1 parent 63c0013 commit 71908e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hex/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ defmodule Hex.Utils do
end
end

defp signature_fetch_fail({code, _, _}),
do: "returned http status code #{code}"
defp signature_fetch_fail({:http_error, reason, _}),
do: "failed with http error #{inspect reason}"
defp signature_fetch_fail({code, _, _}),
do: "returned http status code #{code}"

def etag(path) do
case File.read(path) do
Expand Down

0 comments on commit 71908e7

Please sign in to comment.