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) --- test/manual/profile-e2e-test.ts | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'test/manual/profile-e2e-test.ts') 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 { 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 { 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 { } catch { try { browser.kill("SIGKILL"); - } catch { - } + } catch {} } } try { rmSync(udd, { recursive: true, force: true, maxRetries: 5, retryDelay: 200 }); - } catch { - } + } catch {} }; try { -- cgit v1.2.3