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 /test/manual/profile-e2e-test.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 'test/manual/profile-e2e-test.ts')
| -rw-r--r-- | test/manual/profile-e2e-test.ts | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/test/manual/profile-e2e-test.ts b/test/manual/profile-e2e-test.ts index 6981b7a..e1ab95c 100644 --- a/test/manual/profile-e2e-test.ts +++ b/test/manual/profile-e2e-test.ts @@ -47,8 +47,7 @@ function findBrowser(): string | undefined { try { const resolved = execFileSync("which", [name], { encoding: "utf8" }).trim(); if (resolved) return resolved; - } catch { - } + } catch {} } } return undefined; @@ -96,8 +95,7 @@ async function waitForEndpoint(deadlineMs = 30_000): Promise<boolean> { try { const res = await fetch(`http://127.0.0.1:${PORT}/json/version`); if (res.ok) return true; - } catch { - } + } catch {} await sleep(500); } return false; @@ -132,8 +130,7 @@ async function main(): Promise<void> { if (process.platform === "win32") { try { execFileSync("taskkill.exe", ["/pid", String(browser.pid), "/T", "/F"], { stdio: "ignore" }); - } catch { - } + } catch {} } else { try { // detached:true put the browser in its own process group, so the negative pid signals the whole group. @@ -141,14 +138,12 @@ async function main(): Promise<void> { } catch { try { browser.kill("SIGKILL"); - } catch { - } + } catch {} } } try { rmSync(udd, { recursive: true, force: true, maxRetries: 5, retryDelay: 200 }); - } catch { - } + } catch {} }; try { |
