Skip to content

Commit c457c75

Browse files
authored
fix: remove duplicate loop (#8430)
1 parent b7758d7 commit c457c75

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

workspaces/arborist/lib/arborist/build-ideal-tree.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,11 +1478,6 @@ This is a one-time fix-up, please be patient...
14781478
const needPrune = metaFromDisk && (mutateTree || flagsSuspect)
14791479
if (this.#prune && needPrune) {
14801480
this.#idealTreePrune()
1481-
for (const node of this.idealTree.inventory.values()) {
1482-
if (node.extraneous) {
1483-
node.parent = null
1484-
}
1485-
}
14861481
}
14871482

14881483
timeEnd()

0 commit comments

Comments
 (0)