Skip to content

Commit 64531f5

Browse files
Check undefined instead of using typeof
1 parent 3fe0699 commit 64531f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export interface ErrorLike {
7979
function isErrorLike(error: any): error is ErrorLike {
8080
if (
8181
typeof error.message === "string" &&
82-
(typeof error.stack === "undefined" || typeof error.stack === "string")
82+
(error.stack === undefined || typeof error.stack === "string")
8383
) {
8484
return true;
8585
}

0 commit comments

Comments
 (0)