1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/cgi/session.rb (close): fixed reversed condition.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shugo 2001-02-15 02:45:09 +00:00
parent 50ce575ce4
commit 756dcb0034
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Thu Feb 15 11:33:49 2001 Shugo Maeda <shugo@ruby-lang.org>
* lib/cgi/session.rb (close): fixed reversed condition.
Wed Feb 14 17:28:24 2001 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/imap.rb: supports unknown resp_text_code.

View file

@ -134,14 +134,13 @@ class CGI
end
def close
return unless @f.closed?
return if @f.closed?
update
@f.close
end
def delete
path = @f.path
return unless @f.closed?
@f.close
File::unlink path
end