mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +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);
|
||||
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue