Skip to content

Commit

Permalink
Verified and removed recursive deleteChildren
Browse files Browse the repository at this point in the history
Signed-off-by: Suresh Kumar Gangumalla <[email protected]>
  • Loading branch information
suresh-gangumalla committed Apr 18, 2024
1 parent c884fab commit c5ccbb6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib/setup/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,6 @@ const deleteChildren = function (children) {
else if (Object.getPrototypeOf(children[i]) === Object.prototype) {
deleteChildren(Object.values(children[i]))
}
// todo: this case may not be needed anymore
else if (Array.isArray(children[i])) {
deleteChildren(children[i])
}

children[i] = null
}
Expand Down

0 comments on commit c5ccbb6

Please sign in to comment.