about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
authorVeetaha <gerzoh1@gmail.com>2020-02-24 21:23:48 +0200
committerVeetaha <gerzoh1@gmail.com>2020-02-24 21:23:56 +0200
commitaf57251c311220c2f93a75a6105e6472ffc8ebaa (patch)
tree2f42d05c0fa34b6a084127d6f093c057df78be9e /editors/code/src
parentb4db089a6b79ae60dec9fcd0ba2d788a494c8d8f (diff)
downloadrust-af57251c311220c2f93a75a6105e6472ffc8ebaa.tar.gz
rust-af57251c311220c2f93a75a6105e6472ffc8ebaa.zip
vscode: remove type assertion
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/installation/server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/installation/server.ts b/editors/code/src/installation/server.ts
index 9de257dd51b..cb5e568448a 100644
--- a/editors/code/src/installation/server.ts
+++ b/editors/code/src/installation/server.ts
@@ -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);