[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:
parent
b260c1e8c8
commit
ea5972572b
@ -416,7 +416,7 @@ module TestIRB
|
|||||||
])
|
])
|
||||||
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
||||||
irb = IRB::Irb.new(IRB::WorkSpace.new(self), input)
|
irb = IRB::Irb.new(IRB::WorkSpace.new(self), input)
|
||||||
out, err = capture_output do
|
out, _ = capture_output do
|
||||||
irb.eval_input
|
irb.eval_input
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -437,7 +437,7 @@ module TestIRB
|
|||||||
])
|
])
|
||||||
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
||||||
irb = IRB::Irb.new(IRB::WorkSpace.new(self), input)
|
irb = IRB::Irb.new(IRB::WorkSpace.new(self), input)
|
||||||
out, err = capture_output do
|
out, _ = capture_output do
|
||||||
IRB::TestHelper.without_rdoc do
|
IRB::TestHelper.without_rdoc do
|
||||||
irb.eval_input
|
irb.eval_input
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user