mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-05 02:43:32 +00:00
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:
parent
11498e342f
commit
cd7dd7d32c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue