mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-17 04:01:05 +00:00
chore: enable consistent-return
This commit is contained in:
@@ -318,4 +318,5 @@ export function normalizeActRequest(
|
||||
};
|
||||
}
|
||||
}
|
||||
throw new Error("Unsupported browser act kind");
|
||||
}
|
||||
|
||||
@@ -307,6 +307,7 @@ function getExistingSessionUnsupportedMessage(action: BrowserActRequest): string
|
||||
case "close":
|
||||
return null;
|
||||
}
|
||||
throw new Error("Unsupported browser act kind");
|
||||
}
|
||||
|
||||
export function registerBrowserAgentActRoutes(
|
||||
|
||||
@@ -21,7 +21,7 @@ export function createBrowserProgram(params?: { withGatewayUrl?: boolean }): {
|
||||
if (params?.withGatewayUrl) {
|
||||
browser.option("--url <url>", "Gateway WebSocket URL");
|
||||
}
|
||||
const parentOpts = (cmd: Command) => cmd.parent?.opts?.() as BrowserParentOpts;
|
||||
const parentOpts = (cmd: Command): BrowserParentOpts => cmd.parent?.opts?.() as BrowserParentOpts;
|
||||
return { program, browser, parentOpts };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user