diff options
-rw-r--r-- | lib/tempfile.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb index 289fea324a..8c2eb16ef6 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 |