lint: enable wastedassign linter (#7340)

This commit is contained in:
Ville Vesilehto
2025-06-02 02:30:41 +03:00
committed by GitHub
parent bb33ab5301
commit 8cac83dfb5
7 changed files with 9 additions and 10 deletions

View File

@@ -379,7 +379,8 @@ func (k *Kubernetes) findPods(r recordRequest, zone string) (pods []msg.Service,
}
zonePath := msg.Path(zone, coredns)
ip := ""
var ip string
if strings.Count(podname, "-") == 3 && !strings.Contains(podname, "--") {
ip = strings.ReplaceAll(podname, "-", ".")
} else {