Skip to content

Commit b5fe840

Browse files
committed
Return false in case of license check error
`undefined` return value was used in case of command error, however setup flow requires a definite outcome - either license is valid or any other outcome.
1 parent 34317da commit b5fe840

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/authenticate.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { createHash } from "node:crypto";
21
import * as fs from "node:fs/promises";
32
import * as os from "node:os";
43
import * as path from "node:path";
@@ -125,7 +124,7 @@ export async function checkIsLicenseValid(outputChannel: LogOutputChannel) {
125124
} catch (error) {
126125
outputChannel.error(error instanceof Error ? error : String(error));
127126

128-
return undefined;
127+
return false;
129128
}
130129
}
131130

0 commit comments

Comments
 (0)