logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: a7893153618566ee250d27e4f47f47818cd90150
parent: 579c7a88e03fe4299e9b3fabac345031b8b64a8b
Author: Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
Date:   Sun,  3 Sep 2017 19:39:39 +0900

Use next instead of return in task (#4787)


Diffstat:

Mlib/tasks/mastodon.rake2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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