refactor: simplify cli conversions

This commit is contained in:
Peter Steinberger
2026-04-11 01:27:39 +01:00
parent 5c0d1c6a40
commit 1fb2e18f47
21 changed files with 24 additions and 25 deletions

View File

@@ -680,7 +680,7 @@ async function maybeRestartService(params: {
process.env.OPENCLAW_UPDATE_IN_PROGRESS = "1";
try {
const interactiveDoctor =
Boolean(process.stdin.isTTY) && !params.opts.json && params.opts.yes !== true;
process.stdin.isTTY && !params.opts.json && params.opts.yes !== true;
await doctorCommand(defaultRuntime, {
nonInteractive: !interactiveDoctor,
});