Skip to content

Commit e487be6

Browse files
committed
strict null fix
1 parent 1fe15c5 commit e487be6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vs/base/common/resources.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ export class ResourceGlobMatcher {
317317
matches(resource: URI): boolean {
318318
const rootExpression = this.expressionsByRoot.findSubstr(resource.toString());
319319
if (rootExpression) {
320-
if (!!rootExpression.expression(relativePath(rootExpression.root, resource))) {
320+
const path = relativePath(rootExpression.root, resource);
321+
if (path && !!rootExpression.expression(path)) {
321322
return true;
322323
}
323324
}

0 commit comments

Comments
 (0)