summaryrefslogtreecommitdiff
path: root/lib
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 /lib
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
Diffstat (limited to 'lib')
-rw-r--r--lib/cgi/session.rb3
1 files changed, 1 insertions, 2 deletions
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