summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Johnston <wjohnston@mpr.org>2016-05-24 09:51:50 -0500
committerWilliam Johnston <wjohnston@mpr.org>2016-05-24 09:51:50 -0500
commit176a21a5580feee04bfb088b236824f14435bad5 (patch)
tree2ea052cf96ddbc1a0360ca88deee605c91183059
parent2adb18d58681ef3bfc274f603661ce598e849fa7 (diff)
downloadbundler-176a21a5580feee04bfb088b236824f14435bad5.tar.gz
Switch to tap
-rw-r--r--lib/bundler/fetcher/compact_index.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/bundler/fetcher/compact_index.rb b/lib/bundler/fetcher/compact_index.rb
index f6993b55ed..aa284e5fc6 100644
--- a/lib/bundler/fetcher/compact_index.rb
+++ b/lib/bundler/fetcher/compact_index.rb
@@ -89,10 +89,7 @@ module Bundler
worker_name = "Compact Index (#{display_uri.host})"
worker = Bundler::Worker.new(25, worker_name, func)
inputs.each {|input| worker.enq(input) }
- res = inputs.map { worker.deq }
- worker.stop
-
- res
+ inputs.map { worker.deq }.tap { worker.stop }
end
end
end