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

Fix #9237
lolsob-rspec
Eugen Rochko 2018-11-08 21:55:59 +01:00 committed by GitHub
parent d78aed7a37
commit eed84cacba
1 changed files with 1 additions and 1 deletions

View File

@ -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