FIX: LocalJumpError in rake tasks (#14874)

`return` isn't allowed in a block context. A followup to #14865
This commit is contained in:
Jarek Radosz
2021-11-10 16:53:55 +01:00
committed by GitHub
parent 3791fbd919
commit b72688340f
4 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ end
desc 'Rebake all posts with a quote using a letter_avatar'
task 'posts:fix_letter_avatars' => :environment do
return unless SiteSetting.external_system_avatars_enabled
next unless SiteSetting.external_system_avatars_enabled
search = Post.where("user_id <> -1")
.where("raw LIKE '%/letter\_avatar/%' OR cooked LIKE '%/letter\_avatar/%'")