From 7ab4ede4f5ec23d9eac6868176d99ad63df46978 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 16 Mar 2023 10:35:15 +0900 Subject: [PATCH] [rubygems/rubygems] util/rubocop -A --only Performance/TimesMap https://github.com/rubygems/rubygems/commit/976a351f8b --- lib/rubygems/request_set.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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