Commit 943211b0 authored by Michael Loftis's avatar Michael Loftis 🦀
Browse files

rewrites List.foldl to Enum.each

parent d1983ed0
......@@ -87,9 +87,8 @@ defp ets_pop_n_expired(table, current_time, desired) do
)
popped
|> List.foldl(true, fn e, acc ->
|> Enum.each(fn e ->
:ets.delete_object(table, e)
acc
end)
popped
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment