From: Akihiko Odaki Date: Sun, 3 Sep 2017 10:39:39 +0000 (+0900) Subject: Use next instead of return in task (#4787) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=a7893153618566ee250d27e4f47f47818cd90150;p=mastodon.git Use next instead of return in task (#4787) --- 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