Commit 68eea8b
recipe: the depth switch says what it does about every other token
golangci-lint reads a switch on token.Type without a default as incomplete, and
it is right about the shape while being wrong about this function: everything
that is not a bracket or a brace leaves the nesting where it was, and listing
the other thirty members would say less than one line saying so.
Measured rather than assumed, because the natural conclusion was that flattening
the function had introduced this. It had not. The version before the flattening,
restored from 3a32c9d and run through the same pinned linter, reports the same
thing at line 78 - the branch had simply never been through preflight, which is
also how a shape cap sat one over its measurement for three commits.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 48ee1f0 commit 68eea8b
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
| 105 | + | |
| 106 | + | |
100 | 107 | | |
101 | | - | |
102 | 108 | | |
0 commit comments