diff --git a/lib/guardian/permissions.ex b/lib/guardian/permissions.ex index 1db8296bb..3ca759f1f 100644 --- a/lib/guardian/permissions.ex +++ b/lib/guardian/permissions.ex @@ -139,7 +139,7 @@ defmodule Guardian.Permissions do raw_perms = @config_permissions.() - unless raw_perms do + if !raw_perms do raise "Permissions are not defined for #{to_string(__MODULE__)}" end diff --git a/lib/guardian/plug/pipeline.ex b/lib/guardian/plug/pipeline.ex index 90af6b9f4..c761a6c32 100644 --- a/lib/guardian/plug/pipeline.ex +++ b/lib/guardian/plug/pipeline.ex @@ -133,7 +133,7 @@ if Code.ensure_loaded?(Plug) do |> Keyword.merge(unquote(opts)) |> config() - unless Keyword.get(new_opts, :otp_app), do: raise_error(:otp_app) + if !Keyword.get(new_opts, :otp_app), do: raise_error(:otp_app) new_opts end