style: fix prettier formatting in stats-fetcher and doctor

This commit is contained in:
kaitranntt
2025-12-11 02:16:44 -05:00
parent a94c3d6600
commit 8897e711de
2 changed files with 7 additions and 5 deletions
+1 -3
View File
@@ -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<boolean> {
export async function isClipproxyRunning(port: number = CLIPROXY_DEFAULT_PORT): Promise<boolean> {
try {
const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), 1000); // 1s timeout
+6 -2
View File
@@ -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})`,