]> cat aescling's git repositories - mastodon.git/commitdiff
Fix nil error regression from #9229 in tootctl media remove (#9239)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 8 Nov 2018 20:55:59 +0000 (21:55 +0100)
committerGitHub <noreply@github.com>
Thu, 8 Nov 2018 20:55:59 +0000 (21:55 +0100)
Fix #9237

lib/mastodon/media_cli.rb

index affc4cedb256bae37d9d2a21d489d1b8c29343d9..99660dd1d9af4867348957d602540119ed3f0b11 100644 (file)
@@ -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