Fix Style/OptionalBooleanParameter cop (#34968)

This commit is contained in:
Matt Jankowski 2025-06-10 04:17:35 -04:00 committed by GitHub
parent a2a6117143
commit dc2cfd50a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 17 additions and 29 deletions

View file

@ -3,10 +3,10 @@
class DomainBlockWorker
include Sidekiq::Worker
def perform(domain_block_id, update = false)
def perform(domain_block_id, update = false) # rubocop:disable Style/OptionalBooleanParameter
domain_block = DomainBlock.find_by(id: domain_block_id)
return true if domain_block.nil?
BlockDomainService.new.call(domain_block, update)
BlockDomainService.new.call(domain_block, update:)
end
end

View file

@ -5,7 +5,7 @@ class UnfollowFollowWorker
sidekiq_options queue: 'pull'
def perform(follower_account_id, old_target_account_id, new_target_account_id, bypass_locked = false)
def perform(follower_account_id, old_target_account_id, new_target_account_id, bypass_locked = false) # rubocop:disable Style/OptionalBooleanParameter
follower_account = Account.find(follower_account_id)
old_target_account = Account.find(old_target_account_id)
new_target_account = Account.find(new_target_account_id)