diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-16 10:35:15 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-17 18:50:55 +0900 |
commit | 7ab4ede4f5ec23d9eac6868176d99ad63df46978 (patch) | |
tree | 74671ba4db77f15cc261cdb684223813053af9d1 | |
parent | 139f0927f54d9d48bb1911717c3e5bf7bd268171 (diff) |
[rubygems/rubygems] util/rubocop -A --only Performance/TimesMap
https://github.com/rubygems/rubygems/commit/976a351f8b
-rw-r--r-- | lib/rubygems/request_set.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/request_set.rb b/lib/rubygems/request_set.rb index 64701a8214..b9b928d3da 100644 --- a/lib/rubygems/request_set.rb +++ b/lib/rubygems/request_set.rb @@ -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 |