diff options
author | Eric Wong <e@80x24.org> | 2014-12-08 06:58:02 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-12-08 06:58:02 +0000 |
commit | 6d891b395d1614d6d00a5c405997c1e6d7c4671f (patch) | |
tree | ede2ba69725217f6234e4ea6de04f1bc51a0e191 /lib | |
parent | 0725cd8adaab279d96958ed6af982639cadc3c17 (diff) | |
download | dtas-6d891b395d1614d6d00a5c405997c1e6d7c4671f.tar.gz |
Array#each already returns the array, so there's no need to use the more confusing Array#map! block
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dtas/compat_onenine.rb | 2 |
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 |