1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

MAINT: Make staticcheck more strict and fix new warnings (#1408)

* Make staticcheck more strict and fix new warnings
This commit is contained in:
Tom Limoncelli
2022-02-11 14:30:45 -05:00
committed by GitHub
parent 25d72395f3
commit 886dbf6d00
16 changed files with 117 additions and 107 deletions

View File

@@ -352,7 +352,9 @@ func (c *cloudflareProvider) createTestWorker(workerName string) error {
return err
}
// go-staticcheck lies!
//lint:ignore U1000 false positive due to
// https://github.com/dominikh/go-tools/issues/1137 which is a dup of
// https://github.com/dominikh/go-tools/issues/810
type pageRuleConstraint struct {
Operator string `json:"operator"`
Value string `json:"value"`