Correct lvar usage
This commit is contained in:
parent
c4ce08e3b8
commit
c8ddda1275
1 changed files with 2 additions and 2 deletions
|
@ -31,10 +31,10 @@ module Mutant
|
|||
#
|
||||
def emit_when_mutations
|
||||
indices = children.each_index.drop(1).take(children.length-2)
|
||||
one = indices.length > 1
|
||||
one = indices.length == 1
|
||||
indices.each do |index|
|
||||
mutate_child(index)
|
||||
delete_child(index) if one
|
||||
delete_child(index) unless one
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue