about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2017-09-03 19:39:39 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-09-03 12:39:39 +0200
commita7893153618566ee250d27e4f47f47818cd90150 (patch)
treee5316e1fbcb5d703e7b342abdf2afc4da31e3877 /lib
parent579c7a88e03fe4299e9b3fabac345031b8b64a8b (diff)
Use next instead of return in task (#4787)
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/mastodon.rake2
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