diff options
Diffstat (limited to 'editors/code/src/installation')
-rw-r--r-- | editors/code/src/installation/fetch_latest_artifact_metadata.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/code/src/installation/fetch_latest_artifact_metadata.ts b/editors/code/src/installation/fetch_latest_artifact_metadata.ts index f1019e089..9141c92ef 100644 --- a/editors/code/src/installation/fetch_latest_artifact_metadata.ts +++ b/editors/code/src/installation/fetch_latest_artifact_metadata.ts | |||
@@ -26,7 +26,9 @@ export async function fetchLatestArtifactMetadata( | |||
26 | 26 | ||
27 | const artifact = response.assets.find(artifact => artifact.name === artifactFileName); | 27 | const artifact = response.assets.find(artifact => artifact.name === artifactFileName); |
28 | 28 | ||
29 | return !artifact ? null : { | 29 | if (!artifact) return null; |
30 | |||
31 | return { | ||
30 | releaseName: response.name, | 32 | releaseName: response.name, |
31 | downloadUrl: artifact.browser_download_url | 33 | downloadUrl: artifact.browser_download_url |
32 | }; | 34 | }; |