summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tempfile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index 289fea324ae..8c2eb16ef61 100644
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -86,7 +86,7 @@ class Tempfile < SimpleDelegator
# If you don't explicitly unlink the temporary file, the removal
# will be delayed until the object is finalized.
def close(unlink=false)
- if real
+ if unlink
close!
else
_close