mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-10 02:12:40 +00:00
vscode: remove type assertion
This commit is contained in:
parent
b4db089a6b
commit
af57251c31
2 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue