refactor(lbug): drop redundant step cast in buildRelRow (#2215 review)

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) <noreply@anthropic.com>
This commit is contained in:
Gergo Magyar 2026-06-15 18:14:22 +00:00
parent 11498e342f
commit cd7dd7d32c

View file

@ -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 {