rewrites List.foldl to Enum.each
authorMichael Loftis <mloftis@wgops.com>
Tue, 1 Jan 2019 15:40:57 +0000 (15:40 +0000)
committerMichael Loftis <mloftis@wgops.com>
Wed, 2 Jan 2019 21:21:40 +0000 (21:21 +0000)
lib/pleroma/web/federator/retry_queue.ex

index 230a2c939ed60f9112c1ba952b385f18f8559d20..e0ce251d201f813b2d22529b4f8962698734777c 100644 (file)
@@ -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