1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
hsbt 2017-08-29 10:22:47 +00:00
parent 3895e30074
commit 9d99093169

View file

@ -1288,7 +1288,7 @@ class CSV
begin
yield csv
ensure
csv.closed? || csv.close
csv.close
end
else
csv