From f091641e463bfa41fa5fe8361873827e7c1f9842 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Wed, 9 May 2018 13:18:13 -0700 Subject: [PATCH] etcdmain: remove shadowed error variable Signed-off-by: Gyuho Lee --- etcdmain/gateway.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etcdmain/gateway.go b/etcdmain/gateway.go index b260ddc7d..e107476ff 100644 --- a/etcdmain/gateway.go +++ b/etcdmain/gateway.go @@ -106,8 +106,8 @@ func startGateway(cmd *cobra.Command, args []string) { srvs.Endpoints = stripSchema(srvs.Endpoints) if len(srvs.SRVs) == 0 { for _, ep := range srvs.Endpoints { - h, p, err := net.SplitHostPort(ep) - if err != nil { + h, p, serr := net.SplitHostPort(ep) + if serr != nil { fmt.Printf("error parsing endpoint %q", ep) os.Exit(1) }