rewrites List.foldl to Enum.each

stable
Michael Loftis 6 years ago
parent d1983ed028
commit 943211b035

@ -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

Loading…
Cancel
Save