summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorxibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-19 05:43:46 +0000
committerxibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-19 05:43:46 +0000
commit6c3a57a19b921678c27fcb99573509f46a70436d (patch)
treebe1ff42b7821029dbf6d8c6c97ed114cab30df8c /lib
parent4254686922f836ac1648e3ccdff4756cb3f7e99c (diff)
* lib/cgi/session.rb: update use rescue Errno::ENOENT because
session delete shoud try all pattern. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/cgi/session.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb
index f29b318d95..2274e4003e 100644
--- a/lib/cgi/session.rb
+++ b/lib/cgi/session.rb
@@ -435,10 +435,9 @@ class CGI
# Close and delete the session's FileStore file.
def delete
- File::unlink @path+".lock"
- File::unlink @path+".new"
- File::unlink @path
- rescue Errno::ENOENT
+ File::unlink @path+".lock" rescue Errno::ENOENT
+ File::unlink @path+".new" rescue Errno::ENOENT
+ File::unlink @path rescue Errno::ENOENT
end
end