提交 1dfd7d23 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #30863 from y-yagi/fix_warning_unused_variable

Fix "warning: assigned but unused variable - message"
......@@ -82,9 +82,8 @@ def test_rc_whitespace_separated
file.puts "--hello --world"
file.flush
message = nil
scrubber = Class.new(ARGVScrubber) {
define_method(:puts) { |msg| message = msg }
define_method(:puts) { |msg| }
}.new ["new", "--rc=#{file.path}"]
args = scrubber.prepare!
assert_equal ["--hello", "--world"], args
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册