Skip to content

Commit a3b121b

Browse files
committed
refactor: remove unneeded loop
1 parent f69c403 commit a3b121b

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
@@ -1465,11 +1465,6 @@ This is a one-time fix-up, please be patient...
14651465
const needPrune = metaFromDisk && (mutateTree || flagsSuspect)
14661466
if (this.#prune && needPrune) {
14671467
this.#idealTreePrune()
1468-
for (const node of this.idealTree.inventory.values()) {
1469-
if (node.extraneous) {
1470-
node.parent = null
1471-
}
1472-
}
14731468
}
14741469

14751470
timeEnd()

0 commit comments

Comments
 (0)