From: Roman Chvanikov Date: Sun, 19 Jan 2020 19:09:47 +0000 (+0300) Subject: Fix credo warning X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=cde828ff7df64740f36b2fc9dfdbfc8d76a8a78d;p=akkoma Fix credo warning --- diff --git a/lib/pleroma/workers/attachments_cleanup_worker.ex b/lib/pleroma/workers/attachments_cleanup_worker.ex index f8239ece6..3f421db40 100644 --- a/lib/pleroma/workers/attachments_cleanup_worker.ex +++ b/lib/pleroma/workers/attachments_cleanup_worker.ex @@ -35,10 +35,11 @@ defmodule Pleroma.Workers.AttachmentsCleanupWorker do ^hrefs ) ) - # The query above can be time consumptive on large instances until we refactor how uploads are stored + # The query above can be time consumptive on large instances until we + # refactor how uploads are stored |> Repo.all(timout: :infinity) - # we should delete 1 object for any given attachment, but don't delete files if - # there are more than 1 object for it + # we should delete 1 object for any given attachment, but don't delete + # files if there are more than 1 object for it |> Enum.reduce(%{}, fn %{ id: id, data: %{