Browse Source

etcdctl: remove duplicate exit line

`handleError` already exits with the exit code in arguments.
`os.Exit(1)` is never executed in this case.
Gyu-Ho Lee 10 years ago
parent
commit
e8215cc577
1 changed files with 0 additions and 1 deletions
  1. 0 1
      etcdctl/command/util.go

+ 0 - 1
etcdctl/command/util.go

@@ -210,7 +210,6 @@ func mustNewClient(c *cli.Context) client.Client {
 				fmt.Fprintf(os.Stderr, "Try '--no-sync' if you want to access non-published client endpoints(%s).\n", strings.Join(hc.Endpoints(), ","))
 				fmt.Fprintf(os.Stderr, "Try '--no-sync' if you want to access non-published client endpoints(%s).\n", strings.Join(hc.Endpoints(), ","))
 			}
 			}
 			handleError(ExitServerError, err)
 			handleError(ExitServerError, err)
-			os.Exit(1)
 		}
 		}
 		if debug {
 		if debug {
 			fmt.Fprintf(os.Stderr, "got endpoints(%s) after sync\n", strings.Join(hc.Endpoints(), ","))
 			fmt.Fprintf(os.Stderr, "got endpoints(%s) after sync\n", strings.Join(hc.Endpoints(), ","))