From 8897e711de5da3cc25d471f4e06b4d2d4576eb36 Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Thu, 11 Dec 2025 02:16:44 -0500 Subject: [PATCH] style: fix prettier formatting in stats-fetcher and doctor --- src/cliproxy/stats-fetcher.ts | 4 +--- src/management/doctor.ts | 8 ++++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/cliproxy/stats-fetcher.ts b/src/cliproxy/stats-fetcher.ts index a442ccd4..36c89b0b 100644 --- a/src/cliproxy/stats-fetcher.ts +++ b/src/cliproxy/stats-fetcher.ts @@ -94,9 +94,7 @@ export async function fetchClipproxyStats( * @param port CLIProxyAPI port (default: 8317) * @returns true if proxy is running */ -export async function isClipproxyRunning( - port: number = CLIPROXY_DEFAULT_PORT -): Promise { +export async function isClipproxyRunning(port: number = CLIPROXY_DEFAULT_PORT): Promise { try { const controller = new AbortController(); const timeoutId = setTimeout(() => controller.abort(), 1000); // 1s timeout diff --git a/src/management/doctor.ts b/src/management/doctor.ts index e9b45805..778e0a51 100644 --- a/src/management/doctor.ts +++ b/src/management/doctor.ts @@ -937,14 +937,18 @@ class Doctor { // Regenerate config with new features regenerateConfig(); - console.log(` ${ok('CLIProxy Config'.padEnd(22))} Upgraded to v${CLIPROXY_CONFIG_VERSION}`); + console.log( + ` ${ok('CLIProxy Config'.padEnd(22))} Upgraded to v${CLIPROXY_CONFIG_VERSION}` + ); this.results.addCheck('CLIProxy Config', 'success', undefined, undefined, { status: 'OK', info: `Upgraded to v${CLIPROXY_CONFIG_VERSION}`, }); } else { configSpinner.succeed(); - console.log(` ${ok('CLIProxy Config'.padEnd(22))} cliproxy/config.yaml (v${CLIPROXY_CONFIG_VERSION})`); + console.log( + ` ${ok('CLIProxy Config'.padEnd(22))} cliproxy/config.yaml (v${CLIPROXY_CONFIG_VERSION})` + ); this.results.addCheck('CLIProxy Config', 'success', undefined, undefined, { status: 'OK', info: `cliproxy/config.yaml (v${CLIPROXY_CONFIG_VERSION})`,