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

test/ruby/test_keyword.rb: Prevent warning: assigned but unused variable

This commit is contained in:
Yusuke Endoh 2022-04-11 10:05:16 +09:00
parent abe2bb1d7c
commit 44a911a293

View file

@ -215,7 +215,6 @@ class TestKeywordArguments < Test::Unit::TestCase
marked = args.last
assert_equal(true, Hash.ruby2_keywords_hash?(marked))
method_args = [args]
after_usage = single(*args)
assert_equal(h, after_usage)
assert_same(marked, args.last)