Mix.Tasks.Pleroma.Uploads: Disable Enum.reduce warning on line 100 (unsure)
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 9 Feb 2019 15:30:42 +0000 (16:30 +0100)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 9 Feb 2019 15:31:17 +0000 (16:31 +0100)
lib/mix/tasks/pleroma/uploads.ex

index 697ad1a7b7da1338e67b478431861fdc8e7caf4d..a01e616278ab1f8cd2c5ea6c333698e73e29a5a4 100644 (file)
@@ -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")