From d8e3edadd128a2ee5712b87a6b660295de2df6be Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 5 Feb 2011 09:22:05 +0000 Subject: writer_thread_pool: needless use of Array#map Array#each will do.. --- lib/rainbows/writer_thread_pool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rainbows/writer_thread_pool.rb b/lib/rainbows/writer_thread_pool.rb index 8bc523f..b5688e0 100644 --- a/lib/rainbows/writer_thread_pool.rb +++ b/lib/rainbows/writer_thread_pool.rb @@ -52,7 +52,7 @@ module Rainbows::WriterThreadPool @@q = qp.map { |q| q.queue } super(worker) # accept loop from Unicorn - qp.map { |q| q.quit! } + qp.each { |q| q.quit! } end # :startdoc: end -- cgit v1.2.3-24-ge0c7