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:
@@ -16,14 +16,14 @@ type (
|
||||
t2 struct{}
|
||||
)
|
||||
|
||||
func (t t1) Transfer(zone string, serial uint32) (<-chan []dns.RR, error) {
|
||||
func (t t1) Transfer(zone string, _serial uint32) (<-chan []dns.RR, error) {
|
||||
const z = "example.org."
|
||||
if zone != z {
|
||||
return nil, ErrNotAuthoritative
|
||||
}
|
||||
return nil, errors.New(z)
|
||||
}
|
||||
func (t t2) Transfer(zone string, serial uint32) (<-chan []dns.RR, error) {
|
||||
func (t t2) Transfer(zone string, _serial uint32) (<-chan []dns.RR, error) {
|
||||
const z = "sub.example.org."
|
||||
if zone != z {
|
||||
return nil, ErrNotAuthoritative
|
||||
|
||||
Reference in New Issue
Block a user