mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 03:43:42 +01:00
Use next instead of return in task (#4787)
This commit is contained in:
parent
579c7a88e0
commit
a789315361
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue