diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-11-08 21:55:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-08 21:55:59 +0100 |
commit | 16a16f62c7fdc196fb0ca1c122e07b54415589e4 (patch) | |
tree | 7ca225c6b881b8b5941b21c664a8bfe7c3113456 | |
parent | 46155122859657e674a0fab097c6812349c35274 (diff) |
Fix nil error regression from #9229 in tootctl media remove (#9239)
Fix #9237
-rw-r--r-- | lib/mastodon/media_cli.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mastodon/media_cli.rb b/lib/mastodon/media_cli.rb index affc4cedb..99660dd1d 100644 --- a/lib/mastodon/media_cli.rb +++ b/lib/mastodon/media_cli.rb @@ -53,7 +53,7 @@ module Mastodon Maintenance::UncacheMediaWorker.new.perform(m) unless options[:dry_run] options[:verbose] ? say(m.id) : say('.', :green, false) processed += 1 - size += m.file_file_size + size += m.file_file_size || 0 end end end |