mirror of
https://github.com/coredns/coredns.git
synced 2026-04-05 19:55:32 -04:00
lint(revive): fix unused-parameter violations (#7980)
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
func TestHeaderResponseRules(t *testing.T) {
|
||||
wr := dnstest.NewRecorder(&test.ResponseWriter{})
|
||||
next := plugin.HandlerFunc(func(ctx context.Context, writer dns.ResponseWriter, msg *dns.Msg) (int, error) {
|
||||
next := plugin.HandlerFunc(func(_ctx context.Context, writer dns.ResponseWriter, msg *dns.Msg) (int, error) {
|
||||
writer.WriteMsg(msg)
|
||||
return dns.RcodeSuccess, nil
|
||||
})
|
||||
@@ -83,7 +83,7 @@ func TestHeaderResponseRules(t *testing.T) {
|
||||
|
||||
func TestHeaderQueryRules(t *testing.T) {
|
||||
wr := dnstest.NewRecorder(&test.ResponseWriter{})
|
||||
next := plugin.HandlerFunc(func(ctx context.Context, writer dns.ResponseWriter, msg *dns.Msg) (int, error) {
|
||||
next := plugin.HandlerFunc(func(_ctx context.Context, writer dns.ResponseWriter, msg *dns.Msg) (int, error) {
|
||||
writer.WriteMsg(msg)
|
||||
return dns.RcodeSuccess, nil
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user