mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/cgi/session.rb: update use rescue nil all because
session delete shoud try all pattern. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
683c5fdfec
commit
0e102a6658
1 changed files with 3 additions and 3 deletions
|
@ -435,9 +435,9 @@ class CGI
|
|||
|
||||
# Close and delete the session's FileStore file.
|
||||
def delete
|
||||
File::unlink @path+".lock" rescue Errno::ENOENT
|
||||
File::unlink @path+".new" rescue Errno::ENOENT
|
||||
File::unlink @path rescue Errno::ENOENT
|
||||
File::unlink @path+".lock" rescue nil
|
||||
File::unlink @path+".new" rescue nil
|
||||
File::unlink @path rescue nil
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue