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:
parent
a8c436d9a1
commit
671ca21254
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue