Skip to content

Commit

Permalink
Fix unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Mar 13, 2019
1 parent 526a487 commit 1192477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix/token.ex
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ defmodule Phoenix.Token do
false
end

defp expired?(signed, max_age_secs) when max_age_secs <= 0, do: true
defp expired?(_signed, max_age_secs) when max_age_secs <= 0, do: true

defp expired?(signed, max_age_secs), do: (signed + trunc(max_age_secs * 1000)) < now_ms()

Expand Down

0 comments on commit 1192477

Please sign in to comment.