Skip to content

Commit de88d27

Browse files
Dave Bartolomeoaeisenberg
andauthored
Update extensions/ql-vscode/src/log-insights/join-order.ts
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
1 parent eb2d00e commit de88d27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/ql-vscode/src/log-insights/join-order.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function getDependentPredicates(operations: string[]): I.List<string> {
5151
const matches = r.exec(operation.trim());
5252
return I.List(matches!)
5353
.rest() // Skip the first group as it's just the entire string
54-
.filter(x => !!x && !x.match('r[0-9]+|PRIMITIVE')) // Only keep the references to predicates.
54+
.filter(x => !x?.match('r[0-9]+|PRIMITIVE')) // Only keep the references to predicates.
5555
.flatMap(x => x.split(',')) // Group 2 in the INVOKE HIGHER_ORDER RELATION case is a comma-separated list of identifiers.
5656
.filter(x => !!x); // Remove empty strings
5757
});

0 commit comments

Comments
 (0)