Skip to content

Commit 969fdb6

Browse files
Make type checking all use typeof
1 parent 47fa752 commit 969fdb6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

extensions/ql-vscode/src/pure/errors.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ export interface ErrorLike {
7878

7979
function isErrorLike(error: any): error is ErrorLike {
8080
if (
81-
error.message !== undefined &&
8281
typeof error.message === "string" &&
83-
(error.stack === undefined || typeof error.stack === "string")
82+
(typeof error.stack === "undefined" || typeof error.stack === "string")
8483
) {
8584
return true;
8685
}

0 commit comments

Comments
 (0)