Commit 6f5eb1e
committed
fix(lint): resolve gofmt and SA4023 failures from golangci-lint v2.13.1
The golangci-lint pin moved to v2.13.1 in #2351, which surfaced four
pre-existing issues that fail the merge gate on main:
- pkg/diff/topology_test.go: Go 1.27 gofmt reindents the multi-value
composite-literal return in collidingCluster().
- tools/testgrid-publish/main.go: SA4023 flags the err != nil guard in
extractSigner() as always true, because readPointerFromAttestation is
a documented stub that unconditionally returns ErrCodeInternal. The
guard is the contract for the real implementation (#1267), so it is
suppressed rather than removed.
Signed-off-by: Mark Chmarny <mark@chmarny.com>1 parent f7c64ef commit 6f5eb1e
2 files changed
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
313 | | - | |
| 312 | + | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
354 | 354 | | |
355 | 355 | | |
0 commit comments