about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-12-08 06:58:02 +0000
committerEric Wong <e@80x24.org>2014-12-08 06:58:02 +0000
commit6d891b395d1614d6d00a5c405997c1e6d7c4671f (patch)
treeede2ba69725217f6234e4ea6de04f1bc51a0e191
parent0725cd8adaab279d96958ed6af982639cadc3c17 (diff)
downloaddtas-6d891b395d1614d6d00a5c405997c1e6d7c4671f.tar.gz
Array#each already returns the array, so there's no need to
use the more confusing Array#map! block
-rw-r--r--lib/dtas/compat_onenine.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/compat_onenine.rb b/lib/dtas/compat_onenine.rb
index 568491b..e789114 100644
--- a/lib/dtas/compat_onenine.rb
+++ b/lib/dtas/compat_onenine.rb
@@ -12,6 +12,6 @@ end unless String.method_defined?(:b)
 
 def IO # :nodoc:
   def self.pipe # :nodoc:
-    super.map! { |io| io.close_on_exec = true; io }
+    super.each { |io| io.close_on_exec = true }
   end
 end if RUBY_VERSION.to_f <= 1.9