etcdmain: remove shadowed error variable

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
release-3.4
Gyuho Lee 2018-05-09 13:18:13 -07:00
parent 167c711467
commit f091641e46
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}