From: Michael Loftis Date: Tue, 1 Jan 2019 15:40:57 +0000 (+0000) Subject: rewrites List.foldl to Enum.each X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=943211b035ccedb4889c5d0a55f68acf8117c163;p=akkoma rewrites List.foldl to Enum.each --- 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