Skip to content

Commit af57251

Browse files
author
Veetaha
committed
vscode: remove type assertion
1 parent b4db089 commit af57251

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

editors/code/.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ module.exports = {
3232
"@typescript-eslint/semi": [
3333
"error",
3434
"always"
35-
]
35+
],
36+
"@typescript-eslint/no-unnecessary-type-assertion": "error"
3637
}
3738
};

editors/code/src/installation/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export async function ensureServerBinary(source: null | BinarySource): Promise<n
6363

6464
async function downloadServer(source: BinarySource.GithubRelease): Promise<boolean> {
6565
try {
66-
const releaseInfo = (await fetchArtifactReleaseInfo(source.repo, source.file, source.version))!;
66+
const releaseInfo = await fetchArtifactReleaseInfo(source.repo, source.file, source.version);
6767

6868
await downloadArtifact(releaseInfo, source.file, source.dir, "language server");
6969
await setServerVersion(source.storage, releaseInfo.releaseName);

0 commit comments

Comments
 (0)