Fix nil error regression from #9229 in tootctl media remove (#9239)

Fix #9237
master
Eugen Rochko 6 years ago committed by GitHub
parent 4615512285
commit 16a16f62c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/mastodon/media_cli.rb

@ -53,7 +53,7 @@ module Mastodon
Maintenance::UncacheMediaWorker.new.perform(m) unless options[:dry_run] Maintenance::UncacheMediaWorker.new.perform(m) unless options[:dry_run]
options[:verbose] ? say(m.id) : say('.', :green, false) options[:verbose] ? say(m.id) : say('.', :green, false)
processed += 1 processed += 1
size += m.file_file_size size += m.file_file_size || 0
end end
end end
end end

Loading…
Cancel
Save