Refactor Mutant::Mutator::Node::Generic#dispatch guard clause
This commit is contained in:
parent
ec9da5da97
commit
0e1365a565
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue