style: format update-cli
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user