Skip to content

Commit

Permalink
fix: compile error (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 committed Feb 23, 2023
1 parent ef92dbf commit 1feefd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function fetchTargetStableVersion(timeout: number, cachePath: string, plat
try {
versions = await request.getJSON<string[]>(vscodeStableReleasesAPI, timeout);
} catch (e) {
const entries = await fs.promises.readdir(cachePath).catch(() => []);
const entries = await fs.promises.readdir(cachePath).catch(() => [] as string[]);
const [fallbackTo] = entries.map(e => downloadDirNameFormat.exec(e))
.filter(isDefined)
.filter(e => e.groups!.platform === platform)
Expand Down

0 comments on commit 1feefd9

Please sign in to comment.