Skip to content

Commit bd1b3dc

Browse files
committed
refactor(verify): keep the literal .reference read beside the alias list
`relationTarget`'s subject is WHICH KEY it reads, stated at length in its own docblock, so the read stays greppable in the function body and only the shape judgment moves to the arbiter — the same form the lint readers use. Claude-Session: https://claude.ai/code/session_019srGWGCBBCBHqcDoRZpQRh Co-authored-by: Claude <noreply@anthropic.com>
1 parent dd6f41c commit bd1b3dc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/verify/src/derive.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,10 @@ function relationTarget(f: any): string | null {
142142
// and never learn the carrier was the reason. Absence keeps its answer —
143143
// `undefined` / `null` / `''` all become `null` here, exactly as before, and
144144
// the report line about an absent target is still a report line.
145-
const ref = referenceCarrierOf(f, 'verify deriveCrudCases relationTarget');
145+
// The literal `.reference` read stays in the argument, so this function's
146+
// subject — WHICH KEY it reads — is still greppable here beside
147+
// {@link REJECTED_REFERENCE_ALIASES}; only the shape judgment moves out.
148+
const ref = referenceCarrierOf({ reference: f?.reference }, 'verify deriveCrudCases relationTarget');
146149
return ref ?? null;
147150
}
148151

0 commit comments

Comments
 (0)