Commit 597d632
fix(lint): apply De Morgan's law to hex-validation guards (QF1001)
Merging origin/master into the lint branch pulled in two test files
(mongo/k8s_test.go, postgres/k8s_helpers_test.go) whose hex-character
guards trip staticcheck QF1001 under CI's golangci-lint `latest`
(newer than the locally pinned 2.11.4). Rewrite
if !((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f'))
into the equivalent
if (c < '0' || c > '9') && (c < 'a' || c > 'f')
Pure boolean equivalence — both packages' tests still pass. Also merges
master so the local lint surface matches the pull/16/merge commit CI lints.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2214965 commit 597d632
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments