[rubygems/rubygems] util/rubocop -A --only Performance/TimesMap

https://github.com/rubygems/rubygems/commit/976a351f8b
This commit is contained in:
Hiroshi SHIBATA 2023-03-16 10:35:15 +09:00
parent 139f0927f5
commit 7ab4ede4f5

View File

@ -159,7 +159,7 @@ class Gem::RequestSet
end
# Create N threads in a pool, have them download all the gems
threads = Gem.configuration.concurrent_downloads.times.map do
threads = Array.new(Gem.configuration.concurrent_downloads) do
# When a thread pops this item, it knows to stop running. The symbol
# is queued here so that there will be one symbol per thread.
download_queue << :stop