Refactor Mutant::Mutator::Node::Generic#dispatch guard clause

This commit is contained in:
Dan Kubb 2013-07-22 09:20:18 -07:00
parent ec9da5da97
commit 0e1365a565

View file

@ -30,8 +30,7 @@ module Mutant
#
def dispatch
children.each_with_index do |child, index|
next unless child.kind_of?(Parser::AST::Node)
mutate_child(index)
mutate_child(index) if child.kind_of?(Parser::AST::Node)
end
end