Simplify guard statement

This commit is contained in:
Markus Schirp 2013-12-07 19:03:17 +01:00
parent c158886aa9
commit 72c17ba7b1

View file

@ -19,7 +19,7 @@ module Mutant
def dispatch def dispatch
children.each_index do |index| children.each_index do |index|
mutate_child(index) mutate_child(index)
delete_child(index) if children.length > 1 delete_child(index) unless children.one?
end end
end end