Skip to content

Commit

Permalink
avoid recursive watchers in the root of the filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Aug 27, 2020
1 parent 295b564 commit c25701b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reducePlan.js
Expand Up @@ -74,7 +74,7 @@ module.exports = (plan, limit) => {
let bestNode = undefined;
let bestCost = Infinity;
for (const node of treeMap.values()) {
if (node.entries <= 1 || !node.children) continue;
if (node.entries <= 1 || !node.children || !node.parent) continue;
if (node.children.length === 0) continue;
if (node.children.length === 1 && !node.value) continue;
// Try to select the node with has just a bit more entries than we need to reduce
Expand Down

0 comments on commit c25701b

Please sign in to comment.