diff options
author | William Johnston <wjohnston@mpr.org> | 2016-05-24 09:51:50 -0500 |
---|---|---|
committer | William Johnston <wjohnston@mpr.org> | 2016-05-24 09:51:50 -0500 |
commit | 176a21a5580feee04bfb088b236824f14435bad5 (patch) | |
tree | 2ea052cf96ddbc1a0360ca88deee605c91183059 | |
parent | 2adb18d58681ef3bfc274f603661ce598e849fa7 (diff) | |
download | bundler-176a21a5580feee04bfb088b236824f14435bad5.tar.gz |
Switch to tap
-rw-r--r-- | lib/bundler/fetcher/compact_index.rb | 5 |
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 |