From c5ccbb6170c705cc5a489ff1a54fb9feb435caf5 Mon Sep 17 00:00:00 2001 From: Suresh Kumar Gangumalla Date: Thu, 18 Apr 2024 11:06:26 +0530 Subject: [PATCH] Verified and removed recursive deleteChildren Signed-off-by: Suresh Kumar Gangumalla --- src/lib/setup/base.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/setup/base.js b/src/lib/setup/base.js index 6a85cbf8..d4dab80e 100644 --- a/src/lib/setup/base.js +++ b/src/lib/setup/base.js @@ -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 }