rewrites List.foldl to Enum.each

This commit is contained in:
Michael Loftis 2019-01-01 15:40:57 +00:00
parent d1983ed028
commit 943211b035

View 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