ruby-changes:74276
From: Peter <ko1@a...>
Date: Fri, 28 Oct 2022 04:31:04 +0900 (JST)
Subject: [ruby-changes:74276] ea5972572b (master): [ruby/irb] Fix warnings in test_cmd.rb
https://git.ruby-lang.org/ruby.git/commit/?id=ea5972572b From ea5972572b116071a5b62d001c7d39e7a080779c Mon Sep 17 00:00:00 2001 From: Peter Zhu <peter@p...> Date: Thu, 27 Oct 2022 15:24:05 -0400 Subject: [ruby/irb] Fix warnings in test_cmd.rb Fixes this warning: warning: assigned but unused variable - err https://github.com/ruby/irb/commit/298fcb57a3 --- test/irb/test_cmd.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb index ca081b65d5..1739bc293d 100644 --- a/test/irb/test_cmd.rb +++ b/test/irb/test_cmd.rb @@ -416,7 +416,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L416 ]) IRB.conf[:PROMPT_MODE] = :SIMPLE irb = IRB::Irb.new(IRB::WorkSpace.new(self), input) - out, err = capture_output do + out, _ = capture_output do irb.eval_input end @@ -437,7 +437,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L437 ]) IRB.conf[:PROMPT_MODE] = :SIMPLE irb = IRB::Irb.new(IRB::WorkSpace.new(self), input) - out, err = capture_output do + out, _ = capture_output do IRB::TestHelper.without_rdoc do irb.eval_input end -- cgit v1.2.3 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/