Commit e37763b
committed
fix(lint): resolve pre-existing staticcheck findings
Unrelated to the zsh fix, but blocking this PR's CI: golangci-lint-action
floats to the latest release, whose newer staticcheck catches issues that
predate this PR and reproduce identically on main.
- client_default.go: replace the deprecated http.Transport.Dial with
DialContext (SA1019)
- get.go: the unix build of GetAccentColor always errors, so the success
path is statically unreachable there (SA4023), even though the
darwin/windows implementations can succeed. An inline //nolint would
be flagged as unused by nolintlint on those platforms' builds, so
exclude SA4023 for this file via .golangci.yml instead - verified
clean under GOOS=linux, GOOS=darwin, and GOOS=windows.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SAb3Bs4xBBQhweDvCh59b71 parent 03c9f96 commit e37763b
2 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
60 | 70 | | |
61 | 71 | | |
62 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments