Little golint nit.

This commit is contained in:
Sascha L. Teichmann 2015-03-02 13:17:52 +01:00
parent 33a53c11da
commit d871808b92

View File

@ -18,11 +18,11 @@ func ipsFromHosts(hosts string) ([]net.IP, error) {
}
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
} else {
ips = append(ips, hips...)
}
ips = append(ips, hips...)
}
return ips, nil