[前][次][番号順一覧][スレッド一覧]

ruby-changes:28318

From: xibbar <ko1@a...>
Date: Fri, 19 Apr 2013 15:17:21 +0900 (JST)
Subject: [ruby-changes:28318] xibbar:r40370 (trunk): * lib/cgi/session.rb: update use rescue nil all because

xibbar	2013-04-19 15:17:01 +0900 (Fri, 19 Apr 2013)

  New Revision: 40370

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40370

  Log:
    * lib/cgi/session.rb: update use rescue nil all because
      session delete shoud try all pattern.

  Modified files:
    trunk/lib/cgi/session.rb

Index: lib/cgi/session.rb
===================================================================
--- lib/cgi/session.rb	(revision 40369)
+++ lib/cgi/session.rb	(revision 40370)
@@ -435,9 +435,9 @@ class CGI https://github.com/ruby/ruby/blob/trunk/lib/cgi/session.rb#L435
 
       # 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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]