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

ruby-changes:71150

From: Yusuke <ko1@a...>
Date: Sat, 12 Feb 2022 00:36:41 +0900 (JST)
Subject: [ruby-changes:71150] 118769d028 (master): test/ruby/test_exception.rb: prevent "assigned but unused variable"

https://git.ruby-lang.org/ruby.git/commit/?id=118769d028

From 118769d028c120c86566421096d69f7705315b5e Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Sat, 12 Feb 2022 00:36:01 +0900
Subject: test/ruby/test_exception.rb: prevent "assigned but unused variable"

---
 test/ruby/test_exception.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb
index bd4170e0fd..306ef200c5 100644
--- a/test/ruby/test_exception.rb
+++ b/test/ruby/test_exception.rb
@@ -265,7 +265,7 @@ class TestException < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_exception.rb#L265
 
       v = assert_throw(:extdep, bug18562) do
         require t.path
-      rescue rescue_all => e
+      rescue rescue_all
         assert(false, "should not reach here")
       end
 
-- 
cgit v1.2.1


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

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