From 20235d5b566bf246b4f31665f16296ab50d0124d Mon Sep 17 00:00:00 2001 From: Skyenought Date: Tue, 18 Jun 2024 21:10:21 +0800 Subject: [PATCH] fix consul lint --- consul/utils.go | 1 - 1 file changed, 1 deletion(-) diff --git a/consul/utils.go b/consul/utils.go index 07ab172..5029c04 100644 --- a/consul/utils.go +++ b/consul/utils.go @@ -42,7 +42,6 @@ func parseAddr(addr net.Addr) (host string, port int, err error) { } host, _, err = net.SplitHostPort(detectHost) - if err != nil { return "", 0, fmt.Errorf("empty host") }