1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-18 19:14:03 +00:00

Use Enum.any? to ensure we return true if there are results

This commit is contained in:
Mark Felder 2020-12-04 11:04:53 -06:00
parent a02eb88396
commit 4aad066091

View file

@ -297,7 +297,7 @@ defp dump_group(group) when is_atom(group) do
defp group_exists?(group) do
group
|> ConfigDB.get_all_by_group()
|> Enum.empty?()
|> Enum.any?()
end
defp maybe_atomize(arg) when is_atom(arg), do: arg