From df634a45658c2e066e57884a9cafcfec144ba83b Mon Sep 17 00:00:00 2001 From: itzhan <2802965114@qq.com> Date: Sat, 20 Sep 2025 09:20:18 +0800 Subject: [PATCH] chore: fix lint formatting --- scripts/test-total-usage-limit.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/test-total-usage-limit.js b/scripts/test-total-usage-limit.js index c5c50bdd..c084ccfd 100644 --- a/scripts/test-total-usage-limit.js +++ b/scripts/test-total-usage-limit.js @@ -111,7 +111,7 @@ async function main() { }) const keyId = newKey.id - const apiKey = newKey.apiKey + const { apiKey } = newKey console.log(`➕ Created test API key ${keyId} with total usage limit $${totalLimit}`) @@ -145,6 +145,8 @@ main().catch(async (error) => { console.error('❌ Total usage limit test failed:', error) try { await redis.disconnect() - } catch (_) {} + } catch (_) { + // Ignore disconnect errors during cleanup + } process.exitCode = 1 })