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:
parent
3895e30074
commit
9d99093169
1 changed files with 1 additions and 1 deletions
|
@ -1288,7 +1288,7 @@ class CSV
|
|||
begin
|
||||
yield csv
|
||||
ensure
|
||||
csv.closed? || csv.close
|
||||
csv.close
|
||||
end
|
||||
else
|
||||
csv
|
||||
|
|
Loading…
Reference in a new issue