mirror of
https://github.com/coredns/coredns.git
synced 2026-04-05 11:45:33 -04:00
lint(revive): fix unused-parameter violations (#7980)
This commit is contained in:
2
plugin/cache/error_test.go
vendored
2
plugin/cache/error_test.go
vendored
@@ -28,7 +28,7 @@ func TestFormErr(t *testing.T) {
|
||||
|
||||
// formErrHandler is a fake plugin implementation which returns a FORMERR for a reply.
|
||||
func formErrHandler() plugin.Handler {
|
||||
return plugin.HandlerFunc(func(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
|
||||
return plugin.HandlerFunc(func(_ctx context.Context, w dns.ResponseWriter, _r *dns.Msg) (int, error) {
|
||||
m := new(dns.Msg)
|
||||
m.SetQuestion("example.net.", dns.TypeA)
|
||||
m.Rcode = dns.RcodeFormatError
|
||||
|
||||
Reference in New Issue
Block a user