about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-05-18 03:03:45 +0000
committerEric Wong <e@80x24.org>2018-05-18 03:03:45 +0000
commit52fd33d76a901015887c6a91ef3567d6d94908e8 (patch)
tree0b681c86e26164227b9462eec4ef429fb9858473
parent212543377fd82ce888f3fd911f244a822bf907b1 (diff)
downloadruby_io_splice-52fd33d76a901015887c6a91ef3567d6d94908e8.tar.gz
Ruby 2.6.0dev warns about these
-rw-r--r--lib/io/splice.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/io/splice.rb b/lib/io/splice.rb
index 8cd9db3..9188c30 100644
--- a/lib/io/splice.rb
+++ b/lib/io/splice.rb
@@ -89,8 +89,8 @@ module IO::Splice
     end
 
     rv
-    ensure
-      close.each { |io| io.close }
+  ensure
+    close.each { |io| io.close }
   end
 
   # splice the full amount specified from +src+ to +dst+