diff options
author | Veetaha <[email protected]> | 2020-02-24 23:58:43 +0000 |
---|---|---|
committer | Veetaha <[email protected]> | 2020-02-24 23:58:43 +0000 |
commit | 6ec4a7db42be5980f7a4b20f349cb10709dbf71b (patch) | |
tree | d96dc189127cfdcf971ab847b957b6c05ab51837 /editors/code/src/installation | |
parent | af57251c311220c2f93a75a6105e6472ffc8ebaa (diff) |
vscode: wrap non-single-line if body with curlies as per matklad
Diffstat (limited to 'editors/code/src/installation')
-rw-r--r-- | editors/code/src/installation/fetch_artifact_release_info.ts | 8 |
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 5e201afb0..b1b5a3485 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( | |||
51 | 51 | ||
52 | const artifact = release.assets.find(artifact => artifact.name === artifactFileName); | 52 | const artifact = release.assets.find(artifact => artifact.name === artifactFileName); |
53 | 53 | ||
54 | if (!artifact) throw new Error( | 54 | if (!artifact) { |
55 | `Artifact ${artifactFileName} was not found in ${release.name} release!` | 55 | throw new Error( |
56 | ); | 56 | `Artifact ${artifactFileName} was not found in ${release.name} release!` |
57 | ); | ||
58 | } | ||
57 | 59 | ||
58 | return { | 60 | return { |
59 | releaseName: release.name, | 61 | releaseName: release.name, |