mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-11-08 11:10:27 +01:00
Little golint nit.
This commit is contained in:
parent
33a53c11da
commit
d871808b92
|
@ -18,11 +18,11 @@ func ipsFromHosts(hosts string) ([]net.IP, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, host := range strings.Split(hosts, ";") {
|
for _, host := range strings.Split(hosts, ";") {
|
||||||
if hips, err := net.LookupIP(host); err != nil {
|
hips, err := net.LookupIP(host)
|
||||||
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else {
|
|
||||||
ips = append(ips, hips...)
|
|
||||||
}
|
}
|
||||||
|
ips = append(ips, hips...)
|
||||||
}
|
}
|
||||||
|
|
||||||
return ips, nil
|
return ips, nil
|
||||||
|
|
Loading…
Reference in New Issue
Block a user