Mix.Tasks.Pleroma.Uploads: Disable Enum.reduce warning on line 100 (unsure)

This commit is contained in:
Haelwenn (lanodan) Monnier 2019-02-09 16:30:42 +01:00
parent d924dc73ba
commit 6ca633ddd3
No known key found for this signature in database
GPG Key ID: D5B7A8E43C997DEE
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ def run(["migrate_local", target_uploader | args]) 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")