mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
add golangci-lint linter (#5499)
This commit is contained in:
@@ -271,6 +271,7 @@ func (r replacer) Replace(ctx context.Context, state request.Request, rr *dnstes
|
||||
}
|
||||
}
|
||||
s := string(b)
|
||||
//nolint:staticcheck
|
||||
bufPool.Put(b[:0])
|
||||
return s
|
||||
}
|
||||
|
||||
@@ -276,7 +276,6 @@ func BenchmarkReplacer(b *testing.B) {
|
||||
}
|
||||
|
||||
func BenchmarkReplacer_CommonLogFormat(b *testing.B) {
|
||||
|
||||
w := dnstest.NewRecorder(&test.ResponseWriter{})
|
||||
r := new(dns.Msg)
|
||||
r.SetQuestion("example.org.", dns.TypeHINFO)
|
||||
|
||||
Reference in New Issue
Block a user