logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 4aad066091b63d88dcffa20458a097407da4f5b0
parent a02eb8839650ecbf8bcad9bd6d346fc280985cae
Author: Mark Felder <feld@FreeBSD.org>
Date:   Fri,  4 Dec 2020 11:04:53 -0600

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

Diffstat:

Mlib/mix/tasks/pleroma/config.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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