From a9bdbd8590801cd9c2fa0cda6203948ac19a779c Mon Sep 17 00:00:00 2001 From: amankumarsingh77 Date: Tue, 28 Jul 2026 20:34:49 +0530 Subject: refactor: tidy the whitespace the comment removal left behind Drops leading blank lines where a file header was removed, collapses double blank lines, and closes the empty catch/handler blocks whose only content had been a comment. Whitespace only. Co-Authored-By: Claude Opus 5 (1M context) --- src/cdp/discovery.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/cdp/discovery.ts') diff --git a/src/cdp/discovery.ts b/src/cdp/discovery.ts index 7b67fe0..f33adc6 100644 --- a/src/cdp/discovery.ts +++ b/src/cdp/discovery.ts @@ -114,8 +114,7 @@ export const discoverEndpoint = async (): Promise> raw = await readFile(portFile, "utf8"); try { mtimeMs = (await stat(portFile)).mtimeMs; - } catch { - } + } catch {} } catch (e) { // EPERM/EACCES is common under sandboxes; remember it and fall back to network probing rather than failing the whole discovery. const code = errnoCode(e); -- cgit v1.2.3