summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-02-15 02:45:09 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-02-15 02:45:09 +0000
commit756dcb00342274f9fa7bb4a1e9980fac73e31f43 (patch)
tree92335971a6934fc41ac9f61f401cc0263c52e1db
parent50ce575ce4534c6c1cf2773a8044686131c7a9c6 (diff)
* 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
-rw-r--r--ChangeLog4
-rw-r--r--lib/cgi/session.rb3
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 68e278a..f6eca26 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb
index d7915c8..1120fb5 100644
--- a/lib/cgi/session.rb
+++ b/lib/cgi/session.rb
@@ -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