Skip to content

Commit c25701b

Browse files
committedAug 27, 2020
avoid recursive watchers in the root of the filesystem
1 parent 295b564 commit c25701b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/reducePlan.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ module.exports = (plan, limit) => {
7474
let bestNode = undefined;
7575
let bestCost = Infinity;
7676
for (const node of treeMap.values()) {
77-
if (node.entries <= 1 || !node.children) continue;
77+
if (node.entries <= 1 || !node.children || !node.parent) continue;
7878
if (node.children.length === 0) continue;
7979
if (node.children.length === 1 && !node.value) continue;
8080
// Try to select the node with has just a bit more entries than we need to reduce

0 commit comments

Comments
 (0)
Please sign in to comment.