2
0

Fix Style/GuardClause in worker rescues (#35508)

This commit is contained in:
Matt Jankowski
2025-07-25 03:18:46 -04:00
committed by GitHub
parent a863e68d17
commit e5e977c24f
5 changed files with 5 additions and 25 deletions

View File

@@ -22,11 +22,7 @@ class MentionResolveWorker
rescue Mastodon::UnexpectedResponseError => e
response = e.response
if response_error_unsalvageable?(response)
# Give up
else
raise e
end
raise(e) unless response_error_unsalvageable?(response)
end
private