aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tempfile.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tempfile.rb')
-rwxr-xr-xlib/tempfile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index c45865d7a3..54f00de2b0 100755
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -236,7 +236,7 @@ class Tempfile < DelegateClass(File)
end
# remove tmpname from remover
@data[0] = @data[2] = nil
- @data = @tmpname = nil
+ @tmpname = nil
rescue Errno::EACCES
# may not be able to unlink on Windows; just ignore
end