Skip to content

Commit 298fcb5

Browse files
committed
Fix warnings in test_cmd.rb
Fixes this warning: warning: assigned but unused variable - err
1 parent d605116 commit 298fcb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/irb/test_cmd.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def test_help
416416
])
417417
IRB.conf[:PROMPT_MODE] = :SIMPLE
418418
irb = IRB::Irb.new(IRB::WorkSpace.new(self), input)
419-
out, err = capture_output do
419+
out, _ = capture_output do
420420
irb.eval_input
421421
end
422422

@@ -437,7 +437,7 @@ def test_help_without_rdoc
437437
])
438438
IRB.conf[:PROMPT_MODE] = :SIMPLE
439439
irb = IRB::Irb.new(IRB::WorkSpace.new(self), input)
440-
out, err = capture_output do
440+
out, _ = capture_output do
441441
IRB::TestHelper.without_rdoc do
442442
irb.eval_input
443443
end

0 commit comments

Comments
 (0)