From: Eugen Rochko Date: Thu, 8 Nov 2018 20:55:59 +0000 (+0100) Subject: Fix nil error regression from #9229 in tootctl media remove (#9239) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=16a16f62c7fdc196fb0ca1c122e07b54415589e4;p=mastodon.git Fix nil error regression from #9229 in tootctl media remove (#9239) Fix #9237 --- 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