diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-29 10:22:47 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-29 10:22:47 +0000 |
commit | 9d99093169ec39b0772a17ae7a7048a8a1e02d9c (patch) | |
tree | ba97541b6671c039a6b03b02acba8948d1e55e56 /lib | |
parent | 3895e300743be093c017dbd5569b946a549ce84b (diff) | |
download | ruby-9d99093169ec39b0772a17ae7a7048a8a1e02d9c.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/csv.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |