Commit f3996b2
committed
fix: collapse tautological err check on lexBarePlaceholder (FP-11)
lexBarePlaceholder has no return-nil path — an unquoted '<' is always
a parse error by design (PT-02(b)) — so `if err := ...; err != nil`
at the call site was flagged by staticcheck (SA4023: always-true
comparison) as pre-existing tech debt blocking the required Lint CI
check on main (confirmed unrelated to FP-10/#265/#266).
Collapses to a direct `return l.lexBarePlaceholder()` — behaviorally
identical, since err was always non-nil anyway.1 parent 78b5014 commit f3996b2
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
0 commit comments