mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 22:38:26 +00:00
chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -8,13 +8,8 @@ export function resolveChannelDefaultAccountId<ResolvedAccount>(params: {
|
||||
cfg: ClawdbotConfig;
|
||||
accountIds?: string[];
|
||||
}): string {
|
||||
const accountIds =
|
||||
params.accountIds ?? params.plugin.config.listAccountIds(params.cfg);
|
||||
return (
|
||||
params.plugin.config.defaultAccountId?.(params.cfg) ??
|
||||
accountIds[0] ??
|
||||
DEFAULT_ACCOUNT_ID
|
||||
);
|
||||
const accountIds = params.accountIds ?? params.plugin.config.listAccountIds(params.cfg);
|
||||
return params.plugin.config.defaultAccountId?.(params.cfg) ?? accountIds[0] ?? DEFAULT_ACCOUNT_ID;
|
||||
}
|
||||
|
||||
export function formatPairingApproveHint(channelId: string): string {
|
||||
|
||||
Reference in New Issue
Block a user