diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-30 09:05:50 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-30 09:05:50 +0000 |
commit | cc09968d71b70cc6b4eab7064ed7fc96ec61cd16 (patch) | |
tree | fc285d8bd11de1678e5cab2dfa14c70e3f526506 /lib | |
parent | 5e3455597d25dff31582254dc0d220ccdd2b8b98 (diff) | |
download | ruby-cc09968d71b70cc6b4eab7064ed7fc96ec61cd16.tar.gz |
* lib/tempfile.rb (Remover#call): fixed wrong condition introduced at
r50682.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-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 e2bb9d1f0b..63d4f8c330 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -251,7 +251,7 @@ class Tempfile < DelegateClass(File) warn "removing #{@tmpfile.path}..." if $DEBUG - @tmpfile.close if @tmpfile.closed? + @tmpfile.close unless @tmpfile.closed? begin File.unlink(@tmpfile.path) rescue Errno::ENOENT |