From 5668f23fc3dc99e09ac3cced5e8a0f22cffd8552 Mon Sep 17 00:00:00 2001 From: Parker Selbert Date: Wed, 12 Jun 2024 08:12:10 -0500 Subject: [PATCH] Address compilation warnings and errors --- lib/oban/queue/executor.ex | 2 ++ lib/oban/validation.ex | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/oban/queue/executor.ex b/lib/oban/queue/executor.ex index 301c19af..f54cb446 100644 --- a/lib/oban/queue/executor.ex +++ b/lib/oban/queue/executor.ex @@ -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 diff --git a/lib/oban/validation.ex b/lib/oban/validation.ex index 288874d4..9c45c4c3 100644 --- a/lib/oban/validation.ex +++ b/lib/oban/validation.ex @@ -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