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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)