Use Enum.any? to ensure we return true if there are results
authorMark Felder <feld@FreeBSD.org>
Fri, 4 Dec 2020 17:04:53 +0000 (11:04 -0600)
committerMark Felder <feld@FreeBSD.org>
Fri, 4 Dec 2020 17:04:53 +0000 (11:04 -0600)
lib/mix/tasks/pleroma/config.ex

index 63d8c46b5779827f168b8d89ae0f641e17a0d5f7..d2e9a3760c8b50054cfe990d1276f97654b00d35 100644 (file)
@@ -297,7 +297,7 @@ defmodule Mix.Tasks.Pleroma.Config 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