ruby-changes:55825
From: Hiroshi <ko1@a...>
Date: Sat, 25 May 2019 11:28:54 +0900 (JST)
Subject: [ruby-changes:55825] Hiroshi SHIBATA: 3c6e1a8cf9 (trunk): Avoid to show warning message with unused variable.
https://git.ruby-lang.org/ruby.git/commit/?id=3c6e1a8cf9 From 3c6e1a8cf911d312edeb9dfcc9153be68867ca4f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Sat, 25 May 2019 11:28:07 +0900 Subject: Avoid to show warning message with unused variable. diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index a835094..f7cbc76 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -162,8 +162,8 @@ class TestRequire < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_require.rb#L162 require(require_path) $".pop File.chmod(0777, File.dirname(require_path)) - ospath = (require_path.encode('filesystem') rescue - require_path.encode(self.class.ospath_encoding(require_path))) + require_path.encode('filesystem') rescue + require_path.encode(self.class.ospath_encoding(require_path)) e = nil stderr = EnvUtil.verbose_warning do e = assert_raise(SecurityError) do -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/