style: fix prettier formatting in server.ts

Expand one-liner try/catch to multi-line to satisfy prettier check.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-03-01 23:48:14 +01:00
co-authored by Claude Opus 4.6
parent 2b61a8db1b
commit f7552c7cb5
+5 -1
View File
@@ -583,7 +583,11 @@ export class WebServer extends EventEmitter {
this.sendSSE(reply, 'init', this.getLightState());
// Flush Cloudflare tunnel buffer with padding — ensures the init event
// (and any immediately following events) are delivered without proxy delay.
try { reply.raw.write(SSE_PADDING); } catch { /* client gone */ }
try {
reply.raw.write(SSE_PADDING);
} catch {
/* client gone */
}
req.raw.on('close', () => {
this.sseClients.delete(reply);