From 943211b035ccedb4889c5d0a55f68acf8117c163 Mon Sep 17 00:00:00 2001 From: Michael Loftis Date: Tue, 1 Jan 2019 15:40:57 +0000 Subject: [PATCH] rewrites List.foldl to Enum.each --- lib/pleroma/web/federator/retry_queue.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/pleroma/web/federator/retry_queue.ex b/lib/pleroma/web/federator/retry_queue.ex index 230a2c939..e0ce251d2 100644 --- a/lib/pleroma/web/federator/retry_queue.ex +++ b/lib/pleroma/web/federator/retry_queue.ex @@ -87,9 +87,8 @@ defmodule Pleroma.Web.Federator.RetryQueue do ) popped - |> List.foldl(true, fn e, acc -> + |> Enum.each(fn e -> :ets.delete_object(table, e) - acc end) popped -- 2.45.2