style: format update-cli
This commit is contained in:
parent
d029eaa0bb
commit
eecb340f64
1 changed files with 1 additions and 3 deletions
|
|
@ -247,9 +247,7 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {
|
||||||
}
|
}
|
||||||
if (opts.channel && !configSnapshot.valid) {
|
if (opts.channel && !configSnapshot.valid) {
|
||||||
const issues = configSnapshot.issues.map((issue) => `- ${issue.path}: ${issue.message}`);
|
const issues = configSnapshot.issues.map((issue) => `- ${issue.path}: ${issue.message}`);
|
||||||
defaultRuntime.error(
|
defaultRuntime.error(["Config is invalid; cannot set update channel.", ...issues].join("\n"));
|
||||||
["Config is invalid; cannot set update channel.", ...issues].join("\n"),
|
|
||||||
);
|
|
||||||
defaultRuntime.exit(1);
|
defaultRuntime.exit(1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue