summaryrefslogtreecommitdiff
path: root/lib/csv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csv.rb')
-rw-r--r--lib/csv.rb2
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