Update rubocop to version 1.8.40 (#37628)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2026-01-29 10:14:14 +00:00
1 parent bc3871f992
commit 23148dc536
12 files changed
+24 -24

No files matched your search

+7 -7
View File
@@ -48,11 +48,11 @@ class MoveWorker
source_local_followers
.where(account: @target_account.followers.local)
.in_batches do |follows|
ListAccount.where(follow: follows).includes(:list).find_each do |list_account|
list_account.list.accounts << @target_account
rescue ActiveRecord::RecordInvalid
nil
end
ListAccount.where(follow: follows).includes(:list).find_each do |list_account|
list_account.list.accounts << @target_account
rescue ActiveRecord::RecordInvalid
nil
end
end
# Finally, handle the common case of accounts not following the new account
@@ -60,8 +60,8 @@ class MoveWorker
.where.not(account: @target_account.followers.local)
.where.not(account_id: @target_account.id)
.in_batches do |follows|
ListAccount.where(follow: follows).in_batches.update_all(account_id: @target_account.id)
num_moved += follows.update_all(target_account_id: @target_account.id)
ListAccount.where(follow: follows).in_batches.update_all(account_id: @target_account.id)
num_moved += follows.update_all(target_account_id: @target_account.id)
end
num_moved