diff --git a/ccw/src/core/routes/codexlens-routes.ts b/ccw/src/core/routes/codexlens-routes.ts index e7d19d9e..c0b18d50 100644 --- a/ccw/src/core/routes/codexlens-routes.ts +++ b/ccw/src/core/routes/codexlens-routes.ts @@ -399,6 +399,8 @@ async function stopWatcherProcess( }; } catch (err: any) { return { success: false, error: err.message }; + } +} // ============================================================ // AUTO-RECOVERY ON SERVER START @@ -436,9 +438,6 @@ async function initializeWatchers(broadcastToClients: (data: unknown) => void): } } - } -} - // LEGACY STATE (Deprecated - use activeWatchers Map instead) // ============================================================