Use next instead of return in task (#4787)

lolsob-rspec
Akihiko Odaki 2017-09-03 19:39:39 +09:00 committed by Eugen Rochko
parent 9b20434874
commit 9304aef321
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ namespace :mastodon do
desc 'Remove deprecated preview cards'
task remove_deprecated_preview_cards: :environment do
return unless ActiveRecord::Base.connection.table_exists? 'deprecated_preview_cards'
next unless ActiveRecord::Base.connection.table_exists? 'deprecated_preview_cards'
class DeprecatedPreviewCard < ActiveRecord::Base
self.inheritance_column = false