mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
vscode: wrap non-single-line if body with curlies as per matklad
This commit is contained in:
parent
af57251c31
commit
6ec4a7db42
1 changed files with 5 additions and 3 deletions
|
@ -51,9 +51,11 @@ export async function fetchArtifactReleaseInfo(
|
||||||
|
|
||||||
const artifact = release.assets.find(artifact => artifact.name === artifactFileName);
|
const artifact = release.assets.find(artifact => artifact.name === artifactFileName);
|
||||||
|
|
||||||
if (!artifact) throw new Error(
|
if (!artifact) {
|
||||||
`Artifact ${artifactFileName} was not found in ${release.name} release!`
|
throw new Error(
|
||||||
);
|
`Artifact ${artifactFileName} was not found in ${release.name} release!`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
releaseName: release.name,
|
releaseName: release.name,
|
||||||
|
|
Loading…
Reference in a new issue