Skip to content

Commit 6ec4a7d

Browse files
author
Veetaha
committed
vscode: wrap non-single-line if body with curlies as per matklad
1 parent af57251 commit 6ec4a7d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

editors/code/src/installation/fetch_artifact_release_info.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ export async function fetchArtifactReleaseInfo(
5151

5252
const artifact = release.assets.find(artifact => artifact.name === artifactFileName);
5353

54-
if (!artifact) throw new Error(
55-
`Artifact ${artifactFileName} was not found in ${release.name} release!`
56-
);
54+
if (!artifact) {
55+
throw new Error(
56+
`Artifact ${artifactFileName} was not found in ${release.name} release!`
57+
);
58+
}
5759

5860
return {
5961
releaseName: release.name,

0 commit comments

Comments
 (0)