diff options
| author | amankumarsingh77 <amankumarsingh7702@gmail.com> | 2026-07-28 20:34:49 +0530 |
|---|---|---|
| committer | Aman Kumar <145339995+amankumarsingh77@users.noreply.github.com> | 2026-08-02 19:12:46 +0530 |
| commit | a9bdbd8590801cd9c2fa0cda6203948ac19a779c (patch) | |
| tree | 060ced4709815f9415fc1172842ed25d97de545f /src/cdp/discovery.ts | |
| parent | 34e5cfdcbe29bbb5f2f46ba54eb67903abd9274d (diff) | |
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) <noreply@anthropic.com>
Diffstat (limited to 'src/cdp/discovery.ts')
| -rw-r--r-- | src/cdp/discovery.ts | 3 |
1 files changed, 1 insertions, 2 deletions
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<Result<CdpEndpoint, CdpError>> 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); |
