mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
add golangci-lint linter (#5499)
This commit is contained in:
@@ -15,7 +15,6 @@ func (e *External) a(ctx context.Context, services []msg.Service, state request.
|
||||
dup := make(map[string]struct{})
|
||||
|
||||
for _, s := range services {
|
||||
|
||||
what, ip := s.HostType()
|
||||
|
||||
switch what {
|
||||
@@ -48,7 +47,6 @@ func (e *External) aaaa(ctx context.Context, services []msg.Service, state reque
|
||||
dup := make(map[string]struct{})
|
||||
|
||||
for _, s := range services {
|
||||
|
||||
what, ip := s.HostType()
|
||||
|
||||
switch what {
|
||||
@@ -127,7 +125,6 @@ func (e *External) srv(ctx context.Context, services []msg.Service, state reques
|
||||
what, ip := s.HostType()
|
||||
|
||||
switch what {
|
||||
|
||||
case dns.TypeCNAME:
|
||||
addr := dns.Fqdn(s.Host)
|
||||
srv := s.NewSRV(state.QName(), weight)
|
||||
|
||||
@@ -83,7 +83,6 @@ func TestTransferAXFR(t *testing.T) {
|
||||
t.Errorf("%+v", rec)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func TestTransferIXFR(t *testing.T) {
|
||||
@@ -127,7 +126,6 @@ func TestTransferIXFR(t *testing.T) {
|
||||
t.Errorf("%+v", rec)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// difference shows what we're missing when comparing two RR slices
|
||||
|
||||
Reference in New Issue
Block a user