зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
4254686922
Коммит
6c3a57a19b
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче