summaryrefslogtreecommitdiff
path: root/lib/bundler/worker.rb
diff options
context:
space:
mode:
authorSamuel E. Giddins <segiddins@segiddins.me>2015-07-15 20:51:16 -0700
committerSamuel E. Giddins <segiddins@segiddins.me>2015-07-15 20:51:16 -0700
commitaf694073229af89af205d24ff449f51f74316a37 (patch)
tree5258cd3a3832bcc21eaa3249c99cdf410a8f9d0a /lib/bundler/worker.rb
parentc85c0c9c642dcdccb7d769d7d9a56d51ad314915 (diff)
downloadbundler-af694073229af89af205d24ff449f51f74316a37.tar.gz
[RuboCop] Enable Style/SymbolProc
Diffstat (limited to 'lib/bundler/worker.rb')
-rw-r--r--lib/bundler/worker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/worker.rb b/lib/bundler/worker.rb
index d5d3b19508..531e597915 100644
--- a/lib/bundler/worker.rb
+++ b/lib/bundler/worker.rb
@@ -61,11 +61,11 @@ module Bundler
# so as worker threads after retrieving it, shut themselves down
def stop_threads
@threads.each { @request_queue.enq POISON }
- @threads.each { |thread| thread.join }
+ @threads.each(&:join)
end
def abort_threads
- @threads.each {|i| i.exit }
+ @threads.each(&:exit)
exit 1
end
end