chore: clear low-risk lint warnings

This commit is contained in:
ejclaw
2026-04-29 13:31:11 +09:00
parent 7ffd4c65e1
commit 4dcd4037f1
40 changed files with 36 additions and 161 deletions

View File

@@ -179,13 +179,9 @@ export function applyCodexUsageToAccount(
// Select the effective bucket
const primaryBucket = usage.find((l) => l.limitId === 'codex');
let effective: CodexRateLimit | null = null;
const effective = primaryBucket ?? (usage.length === 1 ? usage[0] : null);
if (primaryBucket) {
effective = primaryBucket;
} else if (usage.length === 1) {
effective = usage[0];
} else {
if (!effective) {
// Multiple unknown buckets — cannot determine which is authoritative
logger.warn(
{ account: accountIndex + 1 },