1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #38581 from eileencodes/remove-unused-argument

Remove unused argument
This commit is contained in:
Eileen M. Uchitelle 2020-02-27 08:15:07 -05:00 committed by GitHub
commit 3269e4e7b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,7 +157,7 @@ module ActiveRecord
with_handler(role, &blk)
elsif shard
with_shard(connection_specification_name, shard, role || current_role, prevent_writes, &blk)
with_shard(shard, role || current_role, prevent_writes, &blk)
elsif role
with_role(role, prevent_writes, &blk)
else
@ -303,7 +303,7 @@ module ActiveRecord
end
end
def with_shard(connection_specification_name, pool_key, role, prevent_writes)
def with_shard(pool_key, role, prevent_writes)
old_pool_key = current_pool_key
with_role(role, prevent_writes) do