aboutsummaryrefslogtreecommitdiff
path: root/common/patterns_query_tree.js
diff options
context:
space:
mode:
Diffstat (limited to 'common/patterns_query_tree.js')
-rw-r--r--common/patterns_query_tree.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/patterns_query_tree.js b/common/patterns_query_tree.js
index ec1d989..ea3607e 100644
--- a/common/patterns_query_tree.js
+++ b/common/patterns_query_tree.js
@@ -68,7 +68,7 @@ function is_empty_node(tree_node) {
return false;
}
- if (Array.reduce(tree_node.wildcard_matches, (a, b) => b && a !== null, 1))
+ if (tree_node.wildcard_matches.reduce((a, b) => b && a !== null, 1))
return false;
return tree_node.literal_match === null;