mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
lint: enable wastedassign linter (#7340)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user