Explorar o código

etcd-runner: fix govet -shadow warning

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee %!s(int64=8) %!d(string=hai) anos
pai
achega
32ea82cd3f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 {
-	endpoints, err := cmd.Flags().GetStringSlice("endpoints")
+	eps, err := cmd.Flags().GetStringSlice("endpoints")
 	if err != nil {
 		ExitWithError(ExitError, err)
 	}
-	return endpoints
+	return eps
 }