Browse Source

etcd-runner: fix govet -shadow warning

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
32ea82cd3f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tools/functional-tester/etcd-runner/command/global.go

+ 2 - 2
tools/functional-tester/etcd-runner/command/global.go

@@ -106,9 +106,9 @@ func doRounds(rcs []roundClient, rounds int, requests int) {
 }
 }
 
 
 func endpointsFromFlag(cmd *cobra.Command) []string {
 func endpointsFromFlag(cmd *cobra.Command) []string {
-	endpoints, err := cmd.Flags().GetStringSlice("endpoints")
+	eps, err := cmd.Flags().GetStringSlice("endpoints")
 	if err != nil {
 	if err != nil {
 		ExitWithError(ExitError, err)
 		ExitWithError(ExitError, err)
 	}
 	}
-	return endpoints
+	return eps
 }
 }