mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 06:32:43 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -7,11 +7,15 @@ export function parseRelaySmokeTest(args: string[], env: NodeJS.ProcessEnv): Rel
|
||||
if (!value || value.startsWith("-")) {
|
||||
throw new Error("Missing value for --smoke (expected: qr)");
|
||||
}
|
||||
if (value === "qr") return "qr";
|
||||
if (value === "qr") {
|
||||
return "qr";
|
||||
}
|
||||
throw new Error(`Unknown smoke test: ${value}`);
|
||||
}
|
||||
|
||||
if (args.includes("--smoke-qr")) return "qr";
|
||||
if (args.includes("--smoke-qr")) {
|
||||
return "qr";
|
||||
}
|
||||
|
||||
// Back-compat: only run env-based smoke mode when no CLI args are present,
|
||||
// to avoid surprising early-exit when users set env vars globally.
|
||||
|
||||
Reference in New Issue
Block a user