1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Fix warnings in test_cmd.rb

Fixes this warning:

    warning: assigned but unused variable - err

https://github.com/ruby/irb/commit/298fcb57a3
This commit is contained in:
Peter Zhu 2022-10-27 15:24:05 -04:00
parent b260c1e8c8
commit ea5972572b

View file

@ -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