fix(review): mark firstLineMatching's noUncheckedIndexedAccess fallback unreachable - #4588
Conversation
…ck unreachable Pre-existing coverage gap found while touching this file for the generic_secret_assignment fix: the loop bound already guarantees lines[i] is defined, so the ?? "" fallback (duplicated twice on one line) was dead code requiring two separate, unreachable branches. Hoists it into one local binding with a single documented /* v8 ignore next */, matching the convention already used elsewhere in this codebase for this exact noUncheckedIndexedAccess shape.
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4588 +/- ##
=======================================
Coverage 94.12% 94.12%
=======================================
Files 430 430
Lines 38177 38177
Branches 13920 13920
=======================================
+ Hits 35934 35935 +1
Misses 1585 1585
+ Partials 658 657 -1
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-10 06:35:15 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 4 non-blocking
Concerns raised — review before merging
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Summary
Pre-existing coverage gap found while touching this file for #4587 (the
generic_secret_assignmentfalse-positive fix): the loop bound already guaranteeslines[i]is defined, so the?? ""fallback (duplicated twice on one line) was dead code requiring two separate, unreachable branches. Hoists it into one local binding with a single documented/* v8 ignore next */, matching the convention already used elsewhere in this codebase for this exactnoUncheckedIndexedAccessshape.Test plan
npm run typecheck, existingcontent-lane-security-scan.test.tssuite (43 tests, unchanged behavior)