From dd9c9dac53b8ff311423d9cc4785beae83f1abb2 Mon Sep 17 00:00:00 2001 From: IVY <62232838+IVY-AI-gif@users.noreply.github.com> Date: Mon, 23 Mar 2026 00:11:34 +0800 Subject: [PATCH] style: format with oxfmt --- src/infra/provider-usage.fetch.minimax.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/infra/provider-usage.fetch.minimax.ts b/src/infra/provider-usage.fetch.minimax.ts index bfd708f46e1..7d2c36b8cc8 100644 --- a/src/infra/provider-usage.fetch.minimax.ts +++ b/src/infra/provider-usage.fetch.minimax.ts @@ -348,11 +348,7 @@ function pickChatModelRemains(modelRemains: unknown[]): Record const chatRecord = records.find((r) => { const name = typeof r.model_name === "string" ? r.model_name : ""; const total = parseFiniteNumber(r.current_interval_total_count); - return ( - name.toLowerCase().startsWith("minimax-m") && - total !== undefined && - total > 0 - ); + return name.toLowerCase().startsWith("minimax-m") && total !== undefined && total > 0; }); if (chatRecord) { @@ -448,9 +444,7 @@ export async function fetchMinimaxUsage( parseEpoch(pickNumber(usageRecord, RESET_KEYS)) ?? parseEpoch(pickString(payload, RESET_KEYS)) ?? parseEpoch(pickNumber(payload, RESET_KEYS)); - const windowLabel = chatRemains - ? deriveWindowLabel(chatRemains) - : deriveWindowLabel(usageRecord); + const windowLabel = chatRemains ? deriveWindowLabel(chatRemains) : deriveWindowLabel(usageRecord); const windows: UsageWindow[] = [ { label: windowLabel, @@ -460,9 +454,7 @@ export async function fetchMinimaxUsage( ]; const modelName = - chatRemains && typeof chatRemains.model_name === "string" - ? chatRemains.model_name - : undefined; + chatRemains && typeof chatRemains.model_name === "string" ? chatRemains.model_name : undefined; const plan = pickString(usageRecord, PLAN_KEYS) ?? pickString(payload, PLAN_KEYS) ??