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:
parent
50ce575ce4
commit
756dcb0034
2 changed files with 5 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue