about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
authorVeetaha <gerzoh1@gmail.com>2020-02-25 01:58:43 +0200
committerVeetaha <gerzoh1@gmail.com>2020-02-25 01:58:43 +0200
commit6ec4a7db42be5980f7a4b20f349cb10709dbf71b (patch)
treed96dc189127cfdcf971ab847b957b6c05ab51837 /editors/code/src
parentaf57251c311220c2f93a75a6105e6472ffc8ebaa (diff)
downloadrust-6ec4a7db42be5980f7a4b20f349cb10709dbf71b.tar.gz
rust-6ec4a7db42be5980f7a4b20f349cb10709dbf71b.zip
vscode: wrap non-single-line if body with curlies as per matklad
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/installation/fetch_artifact_release_info.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/editors/code/src/installation/fetch_artifact_release_info.ts b/editors/code/src/installation/fetch_artifact_release_info.ts
index 5e201afb0a4..b1b5a3485cc 100644
--- a/editors/code/src/installation/fetch_artifact_release_info.ts
+++ b/editors/code/src/installation/fetch_artifact_release_info.ts
@@ -51,9 +51,11 @@ export async function fetchArtifactReleaseInfo(
 
     const artifact = release.assets.find(artifact => artifact.name === artifactFileName);
 
-    if (!artifact) throw new Error(
-        `Artifact ${artifactFileName} was not found in ${release.name} release!`
-    );
+    if (!artifact) {
+        throw new Error(
+            `Artifact ${artifactFileName} was not found in ${release.name} release!`
+        );
+    }
 
     return {
         releaseName: release.name,