mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
cleanup code by lint (#3312)
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
This commit is contained in:
committed by
Miek Gieben
parent
f2df37a1fe
commit
8af4685587
@@ -65,8 +65,7 @@ func (k *Kubernetes) nsAddrs(external bool, zone string) []dns.RR {
|
||||
}
|
||||
|
||||
// Create an RR slice of collected IPs
|
||||
var rrs []dns.RR
|
||||
rrs = make([]dns.RR, len(svcIPs))
|
||||
rrs := make([]dns.RR, len(svcIPs))
|
||||
for i, ip := range svcIPs {
|
||||
if ip.To4() == nil {
|
||||
rr := new(dns.AAAA)
|
||||
|
||||
Reference in New Issue
Block a user