Correct lvar usage

This commit is contained in:
Markus Schirp 2013-06-23 21:59:09 +02:00
parent c4ce08e3b8
commit c8ddda1275

View file

@ -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