mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 04:23:25 +00:00
vscode: remove type assertion
This commit is contained in:
parent
b4db089a6b
commit
af57251c31
2 changed files with 3 additions and 2 deletions
|
@ -32,6 +32,7 @@ module.exports = {
|
|||
"@typescript-eslint/semi": [
|
||||
"error",
|
||||
"always"
|
||||
]
|
||||
],
|
||||
"@typescript-eslint/no-unnecessary-type-assertion": "error"
|
||||
}
|
||||
};
|
||||
|
|
|
@ -63,7 +63,7 @@ export async function ensureServerBinary(source: null | BinarySource): Promise<n
|
|||
|
||||
async function downloadServer(source: BinarySource.GithubRelease): Promise<boolean> {
|
||||
try {
|
||||
const releaseInfo = (await fetchArtifactReleaseInfo(source.repo, source.file, source.version))!;
|
||||
const releaseInfo = await fetchArtifactReleaseInfo(source.repo, source.file, source.version);
|
||||
|
||||
await downloadArtifact(releaseInfo, source.file, source.dir, "language server");
|
||||
await setServerVersion(source.storage, releaseInfo.releaseName);
|
||||
|
|
Loading…
Reference in a new issue