More compact representation
authorMark Felder <feld@FreeBSD.org>
Fri, 4 Dec 2020 17:37:49 +0000 (11:37 -0600)
committerMark Felder <feld@FreeBSD.org>
Fri, 4 Dec 2020 17:37:49 +0000 (11:37 -0600)
lib/mix/tasks/pleroma/config.ex

index 99dfd0dc31874dd0a299d6d8f3e4200b8e7f0c44..25f1ca05d1ea3dfd80a75c5503d66bc7268ae2b2 100644 (file)
@@ -344,9 +344,7 @@ defmodule Mix.Tasks.Pleroma.Config do
     check_configdb(fn ->
       group
       |> Pleroma.ConfigDB.get_all_by_group()
-      |> Enum.each(fn config ->
-        Pleroma.ConfigDB.delete(%{group: config.group, key: config.key})
-      end)
+      |> Enum.each(&ConfigDB.delete/1)
     end)
   end