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:
@@ -68,7 +68,7 @@ type Upstub struct {
|
||||
}
|
||||
|
||||
// Lookup returns a set response
|
||||
func (t *Upstub) Lookup(ctx context.Context, state request.Request, name string, typ uint16) (*dns.Msg, error) {
|
||||
func (t *Upstub) Lookup(_ctx context.Context, _state request.Request, _name string, _typ uint16) (*dns.Msg, error) {
|
||||
var answer []dns.RR
|
||||
// if query type is not CNAME, remove any CNAME with same name as qname from the answer
|
||||
if t.Qtype != dns.TypeCNAME {
|
||||
|
||||
Reference in New Issue
Block a user