mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdmain: remove shadowed error variable
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
167c711467
commit
f091641e46
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user