Simplify guard statement
This commit is contained in:
parent
c158886aa9
commit
72c17ba7b1
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ module Mutant
|
|||
def dispatch
|
||||
children.each_index do |index|
|
||||
mutate_child(index)
|
||||
delete_child(index) if children.length > 1
|
||||
delete_child(index) unless children.one?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue