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/domains/readpage/capture.ts | 1 - src/domains/readpage/readability.ts | 1 - src/domains/search/extract.ts | 1 - src/domains/search/google-serp.ts | 1 - src/domains/setup.ts | 1 - 5 files changed, 5 deletions(-) (limited to 'src/domains') diff --git a/src/domains/readpage/capture.ts b/src/domains/readpage/capture.ts index cf9d055..b0b7ae0 100644 --- a/src/domains/readpage/capture.ts +++ b/src/domains/readpage/capture.ts @@ -1,4 +1,3 @@ - const BODY_TEXT_LIMIT = 20_000; export const buildPageCaptureExpr = (): string => ` diff --git a/src/domains/readpage/readability.ts b/src/domains/readpage/readability.ts index b20cacd..32413e6 100644 --- a/src/domains/readpage/readability.ts +++ b/src/domains/readpage/readability.ts @@ -1,4 +1,3 @@ - export type ContentBlock = { readonly kind: "paragraph" | "heading" | "listitem" | "blockquote" | "other"; readonly text: string; diff --git a/src/domains/search/extract.ts b/src/domains/search/extract.ts index 05ee182..4d9e892 100644 --- a/src/domains/search/extract.ts +++ b/src/domains/search/extract.ts @@ -1,4 +1,3 @@ - const PAGE_TEXT_LIMIT = 4000; export const buildSerpExtractionExpr = (): string => ` diff --git a/src/domains/search/google-serp.ts b/src/domains/search/google-serp.ts index 4b8a319..bfeb1e7 100644 --- a/src/domains/search/google-serp.ts +++ b/src/domains/search/google-serp.ts @@ -1,4 +1,3 @@ - export type SerpAnchor = { readonly href: string; readonly heading: string; diff --git a/src/domains/setup.ts b/src/domains/setup.ts index 21fa3b3..9291431 100644 --- a/src/domains/setup.ts +++ b/src/domains/setup.ts @@ -1,4 +1,3 @@ - import { Type } from "typebox"; import { Text } from "@mariozechner/pi-tui"; import type { Result } from "../util/result"; -- cgit v1.2.3