From 9d99093169ec39b0772a17ae7a7048a8a1e02d9c Mon Sep 17 00:00:00 2001 From: hsbt Date: Tue, 29 Aug 2017 10:22:47 +0000 Subject: Partly reverted r59642. Because IO#close is idempotent since Ruby 2.3. Reported by Eric Wong. Thank you. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/csv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/csv.rb') diff --git a/lib/csv.rb b/lib/csv.rb index 74430f65e0..f2e23875f5 100644 --- a/lib/csv.rb +++ b/lib/csv.rb @@ -1288,7 +1288,7 @@ class CSV begin yield csv ensure - csv.closed? || csv.close + csv.close end else csv -- cgit v1.2.3