From d871808b920ff8f8ec38abd69f60dd64012ff255 Mon Sep 17 00:00:00 2001 From: "Sascha L. Teichmann" Date: Mon, 2 Mar 2015 13:17:52 +0100 Subject: [PATCH] Little golint nit. --- cmd/mtwebmapper/misc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/mtwebmapper/misc.go b/cmd/mtwebmapper/misc.go index 85327b3..88e8fdf 100644 --- a/cmd/mtwebmapper/misc.go +++ b/cmd/mtwebmapper/misc.go @@ -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