mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 15:14:57 +00:00
chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
export type RelaySmokeTest = "qr";
|
||||
|
||||
export function parseRelaySmokeTest(
|
||||
args: string[],
|
||||
env: NodeJS.ProcessEnv,
|
||||
): RelaySmokeTest | null {
|
||||
export function parseRelaySmokeTest(args: string[], env: NodeJS.ProcessEnv): RelaySmokeTest | null {
|
||||
const smokeIdx = args.indexOf("--smoke");
|
||||
if (smokeIdx !== -1) {
|
||||
const value = args[smokeIdx + 1];
|
||||
@@ -18,10 +15,7 @@ export function parseRelaySmokeTest(
|
||||
|
||||
// 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.
|
||||
if (
|
||||
args.length === 0 &&
|
||||
(env.CLAWDBOT_SMOKE_QR === "1" || env.CLAWDBOT_SMOKE === "qr")
|
||||
) {
|
||||
if (args.length === 0 && (env.CLAWDBOT_SMOKE_QR === "1" || env.CLAWDBOT_SMOKE === "qr")) {
|
||||
return "qr";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user