Skip to content

Commit eea9cb4

Browse files
committed
Remove assigned but unused variable warning
1 parent e19bb99 commit eea9cb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/ruby/test_module.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def test_initialize_copy
417417
klass = Class.new { include mod }
418418
instance = klass.new
419419
assert_equal(:first, instance.foo)
420-
new_mod = Module.new { define_method(:foo) { :second } }
420+
Module.new { define_method(:foo) { :second } }
421421
4.times { GC.start }
422422
assert_equal(:first, instance.foo) # [BUG] unreachable
423423
end

0 commit comments

Comments
 (0)