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})`,