1
0
Fork 0
forked from fedi/mastodon

Remove implied StandardError rescue (#23942)

This commit is contained in:
Nick Schonning 2023-03-03 16:49:16 -05:00 committed by GitHub
parent c65c34dfd1
commit b00f945d92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ class ActivityPub::MigratedFollowDeliveryWorker < ActivityPub::DeliveryWorker
def unfollow_old_account!(old_target_account_id)
old_target_account = Account.find(old_target_account_id)
UnfollowService.new.call(@source_account, old_target_account, skip_unmerge: true)
rescue StandardError
rescue
true
end
end