diff options
author | Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp> | 2017-09-03 19:39:39 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-09-03 12:39:39 +0200 |
commit | a7893153618566ee250d27e4f47f47818cd90150 (patch) | |
tree | e5316e1fbcb5d703e7b342abdf2afc4da31e3877 /lib | |
parent | 579c7a88e03fe4299e9b3fabac345031b8b64a8b (diff) |
Use next instead of return in task (#4787)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/mastodon.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index f4f6e4d23..307bc240d 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -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 |