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

remove unused var warning

This commit is contained in:
Koichi Sasada 2019-10-01 01:14:19 +09:00
parent a8c436d9a1
commit 671ca21254

View file

@ -1183,6 +1183,7 @@ class TestMethod < Test::Unit::TestCase
nummodule += 1
mc = mod.kind_of?(Class) ? "class" : "module"
puts_line = "#{mc} #{mod.name} #{(mod.ancestors - [mod]).inspect}"
puts_line = puts_line # prevent unused var warning
mod.singleton_methods(false).sort.each {|methname|
nummethod += 1
meth = mod.method(methname)