From ea5972572b116071a5b62d001c7d39e7a080779c Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Thu, 27 Oct 2022 15:24:05 -0400 Subject: [PATCH] [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 ]) 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 ]) 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