diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-01-14 16:25:51 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-01-31 22:21:13 -0600 |
commit | ada94ccb0a29c2b90cdd0124a276602836c9cc65 (patch) | |
tree | b2e0a5d94ae1cb36c6a0d2c9504085bb1ff16470 | |
parent | 24951a2b41f3cf933acae57203825e6a4ce6d99a (diff) | |
download | bundler-ada94ccb0a29c2b90cdd0124a276602836c9cc65.tar.gz |
[RuboCop] Fix Performance/TimesMap
-rw-r--r-- | .rubocop_todo.yml | 5 | ||||
-rw-r--r-- | lib/bundler/worker.rb | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 57a7d2e4f1..35abaa4c6a 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -93,11 +93,6 @@ Performance/RedundantMerge: - 'spec/support/helpers.rb' # Offense count: 1 -Performance/TimesMap: - Exclude: - - 'lib/bundler/worker.rb' - -# Offense count: 1 Style/AccessorMethodName: Exclude: - 'lib/bundler/source/git.rb' diff --git a/lib/bundler/worker.rb b/lib/bundler/worker.rb index addd9cc8a1..e74823e202 100644 --- a/lib/bundler/worker.rb +++ b/lib/bundler/worker.rb @@ -24,7 +24,7 @@ module Bundler @request_queue = Queue.new @response_queue = Queue.new @func = func - @threads = size.times.map do |i| + @threads = Array.new(size) do |i| Thread.start { process_queue(i) }.tap do |thread| thread.name = "#{name} Worker ##{i}" if thread.respond_to?(:name=) end |