Skip to content

Commit

Permalink
Address compilation warnings and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sorentwo committed Jun 12, 2024
1 parent 1ca783c commit 5668f23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/oban/queue/executor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ defmodule Oban.Queue.Executor do

exec
end

def set_label(exec), do: exec
else
def set_label(exec), do: exec
end
Expand Down
2 changes: 1 addition & 1 deletion lib/oban/validation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ defmodule Oban.Validation do
end
end

defp validate_type({:range, min..max}, key, val) when val < min or val > max do
defp validate_type({:range, min..max//_}, key, val) when val < min or val > max do
{:error, "expected #{inspect(key)} to be between #{min}..#{max}, got: #{inspect(val)}"}
end

Expand Down

0 comments on commit 5668f23

Please sign in to comment.