diff options
author | Michael Loftis <mloftis@wgops.com> | 2019-01-01 15:40:57 +0000 |
---|---|---|
committer | Michael Loftis <mloftis@wgops.com> | 2019-01-02 21:21:40 +0000 |
commit | 943211b035ccedb4889c5d0a55f68acf8117c163 (patch) | |
tree | c64b1377609633267d9a69d1d35d2f9d7a5d68c5 /lib | |
parent | d1983ed0282f1ae485f73024f25ec2753901fa8a (diff) | |
download | pleroma-943211b035ccedb4889c5d0a55f68acf8117c163.tar.gz |
rewrites List.foldl to Enum.each
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/federator/retry_queue.ex | 3 |
1 files changed, 1 insertions, 2 deletions
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 |