From c2dbb7141a7c95aa521a41b27bed3af25de8f546 Mon Sep 17 00:00:00 2001 From: Ondřej Benkovský Date: Sun, 10 Jul 2022 20:06:33 +0200 Subject: add golangci-lint linter (#5499) --- plugin/k8s_external/msg_to_dns.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'plugin/k8s_external/msg_to_dns.go') diff --git a/plugin/k8s_external/msg_to_dns.go b/plugin/k8s_external/msg_to_dns.go index db859cf70..6975718b9 100644 --- a/plugin/k8s_external/msg_to_dns.go +++ b/plugin/k8s_external/msg_to_dns.go @@ -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) -- cgit v1.2.3