add golangci-lint linter (#5499)

This commit is contained in:
Ondřej Benkovský
2022-07-10 20:06:33 +02:00
committed by GitHub
parent abc5ac8017
commit c2dbb7141a
104 changed files with 83 additions and 184 deletions

View File

@@ -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)

View File

@@ -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