1
0
Fork 0
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:
Eileen M. Uchitelle 2020-08-14 13:47:28 -04:00 committed by GitHub
commit 1f9e308695
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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