From cd7dd7d32c059fc31857344f9431de992229f0ee Mon Sep 17 00:00:00 2001 From: Gergo Magyar Date: Mon, 15 Jun 2026 18:14:22 +0000 Subject: [PATCH] refactor(lbug): drop redundant step cast in buildRelRow (#2215 review) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GraphRelationship.step is already typed number?, so (rel as { step?: number }).step was a no-op structural cast that obscured the shared-type coupling. Use rel.step directly. Byte-identical — bench fingerprint unchanged, differential test green. Co-Authored-By: Claude Opus 4.8 (1M context) --- gitnexus/src/core/lbug/csv-generator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitnexus/src/core/lbug/csv-generator.ts b/gitnexus/src/core/lbug/csv-generator.ts index f0315f051..ac160ec36 100644 --- a/gitnexus/src/core/lbug/csv-generator.ts +++ b/gitnexus/src/core/lbug/csv-generator.ts @@ -245,7 +245,7 @@ export const buildRelRow = (rel: GraphRelationship): string => escapeCSVField(rel.type), escapeCSVNumber(rel.confidence, 1.0), escapeCSVField(rel.reason), - escapeCSVNumber((rel as { step?: number }).step, 0), + escapeCSVNumber(rel.step, 0), ].join(','); export interface StreamedCSVResult {