Skip to content

Commit e943e7f

Browse files
Convert isTabInputText to use unknown
1 parent 6e53f28 commit e943e7f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

extensions/ql-vscode/src/local-queries/local-queries.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,11 @@ export class LocalQueries extends DisposableObject {
600600
}
601601
}
602602

603-
function isTabInputText(input: any): input is TabInputText {
604-
return input?.uri !== undefined;
603+
function isTabInputText(input: unknown): input is TabInputText {
604+
return (
605+
input !== null &&
606+
typeof input === "object" &&
607+
"uri" in input &&
608+
input?.uri !== undefined
609+
);
605610
}

0 commit comments

Comments
 (0)