[rubygems/rubygems] util/rubocop -A --only Performance/TimesMap
https://github.com/rubygems/rubygems/commit/976a351f8b
This commit is contained in:
parent
139f0927f5
commit
7ab4ede4f5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user