mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #40049 from eileencodes/remove-unnecessary-compact
Remove unnecessary `compact`
This commit is contained in:
commit
1f9e308695
1 changed files with 1 additions and 1 deletions
|
@ -1027,7 +1027,7 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
def connection_pool_list
|
||||
owner_to_pool_manager.values.compact.flat_map { |m| m.pool_configs.map(&:pool) }
|
||||
owner_to_pool_manager.values.flat_map { |m| m.pool_configs.map(&:pool) }
|
||||
end
|
||||
alias :connection_pools :connection_pool_list
|
||||
|
||||
|
|
Loading…
Reference in a new issue