aboutsummaryrefslogtreecommitdiff
path: root/plugin/pkg/replacer
diff options
context:
space:
mode:
authorGravatar Ondřej Benkovský <ondrej.benkovsky@jamf.com> 2022-07-10 20:06:33 +0200
committerGravatar GitHub <noreply@github.com> 2022-07-10 11:06:33 -0700
commitc2dbb7141a7c95aa521a41b27bed3af25de8f546 (patch)
tree3af5d63a0dccaa769507e34a32b6378ccef880c4 /plugin/pkg/replacer
parentabc5ac8017b0f434b5845321fb1f405ded7774d4 (diff)
downloadcoredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.tar.gz
coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.tar.zst
coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.zip
add golangci-lint linter (#5499)
Diffstat (limited to 'plugin/pkg/replacer')
-rw-r--r--plugin/pkg/replacer/replacer.go1
-rw-r--r--plugin/pkg/replacer/replacer_test.go1
2 files changed, 1 insertions, 1 deletions
diff --git a/plugin/pkg/replacer/replacer.go b/plugin/pkg/replacer/replacer.go
index 845f11bc3..f927305c2 100644
--- a/plugin/pkg/replacer/replacer.go
+++ b/plugin/pkg/replacer/replacer.go
@@ -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
}
diff --git a/plugin/pkg/replacer/replacer_test.go b/plugin/pkg/replacer/replacer_test.go
index 25dd37a5b..e428aad9a 100644
--- a/plugin/pkg/replacer/replacer_test.go
+++ b/plugin/pkg/replacer/replacer_test.go
@@ -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)
alue='jarred/tcc'>jarred/tcc Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/src/string_mutable.zig (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-08-17Support Nitro (#4098)Gravatar dave caruso 10-18/+180
2023-08-17Update Astro guideGravatar Colin McDonnell 1-1/+5
2023-08-17Allow IncomingRequest.req to be overwritten. (#4154)Gravatar dave caruso 3-8/+21
2023-08-17Fix(node:fs): add buffer parameter in fs.read callback. (#4191)Gravatar Ai Hoshino 3-5/+151
2023-08-17refactor: move HTMLRewriter to c++ bindings (#4193)Gravatar Brúnó Salomon 16-1127/+4961
2023-08-17Fix description for executables pageGravatar Colin McDonnell 1-1/+1