From: Haelwenn (lanodan) Monnier Date: Sat, 9 Feb 2019 15:30:42 +0000 (+0100) Subject: Mix.Tasks.Pleroma.Uploads: Disable Enum.reduce warning on line 100 (unsure) X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=6ca633ddd30e8330e47f6456fe16fa72506e2e13;p=akkoma Mix.Tasks.Pleroma.Uploads: Disable Enum.reduce warning on line 100 (unsure) --- diff --git a/lib/mix/tasks/pleroma/uploads.ex b/lib/mix/tasks/pleroma/uploads.ex index 697ad1a7b..a01e61627 100644 --- a/lib/mix/tasks/pleroma/uploads.ex +++ b/lib/mix/tasks/pleroma/uploads.ex @@ -97,6 +97,7 @@ defmodule Mix.Tasks.Pleroma.Uploads do timeout: 150_000 ) |> Stream.chunk_every(@log_every) + # credo:disable-for-next-line Credo.Check.Warning.UnusedEnumOperation |> Enum.reduce(0, fn done, count -> count = count + length(done) Mix.shell().info("Uploaded #{count}/#{total_count} files")