From: Mark Felder Date: Fri, 4 Dec 2020 17:04:53 +0000 (-0600) Subject: Use Enum.any? to ensure we return true if there are results X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=4aad066091b63d88dcffa20458a097407da4f5b0;p=akkoma Use Enum.any? to ensure we return true if there are results --- diff --git a/lib/mix/tasks/pleroma/config.ex b/lib/mix/tasks/pleroma/config.ex index 63d8c46b5..d2e9a3760 100644 --- a/lib/mix/tasks/pleroma/config.ex +++ b/lib/mix/tasks/pleroma/config.ex @@ -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