Fix Performance/TimesMap cop (#24789)
This commit is contained in:
parent
bae694108a
commit
570079f8ce
6 changed files with 15 additions and 24 deletions
|
@ -33,7 +33,7 @@ describe RequestPool do
|
|||
|
||||
subject
|
||||
|
||||
threads = 20.times.map do |_i|
|
||||
threads = Array.new(20) do |_i|
|
||||
Thread.new do
|
||||
20.times do
|
||||
subject.with('http://example.com') do |http_client|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue