mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 13:51:26 +00:00
chore: Enable more lint rules, disable some that trigger a lot. Will clean up later.
This commit is contained in:
@@ -55,7 +55,7 @@ export function resolveOptionFromCommand<T>(
|
||||
): T | undefined {
|
||||
let current: Command | null | undefined = command;
|
||||
while (current) {
|
||||
const opts = (current.opts?.() ?? {}) as Record<string, T | undefined>;
|
||||
const opts = current.opts?.() ?? {};
|
||||
if (opts[key] !== undefined) return opts[key];
|
||||
current = current.parent ?? undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user