Use Enum.any? to ensure we return true if there are results
This commit is contained in:
parent
a02eb88396
commit
4aad066091
@ -297,7 +297,7 @@ defmodule Mix.Tasks.Pleroma.Config do
|
|||||||
defp group_exists?(group) do
|
defp group_exists?(group) do
|
||||||
group
|
group
|
||||||
|> ConfigDB.get_all_by_group()
|
|> ConfigDB.get_all_by_group()
|
||||||
|> Enum.empty?()
|
|> Enum.any?()
|
||||||
end
|
end
|
||||||
|
|
||||||
defp maybe_atomize(arg) when is_atom(arg), do: arg
|
defp maybe_atomize(arg) when is_atom(arg), do: arg
|
||||||
|
Loading…
Reference in New Issue
Block a user