etcd-runner: fix govet -shadow warning

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
release-3.4
Gyuho Lee 2018-02-21 10:22:12 -08:00
parent c0910085f5
commit 32ea82cd3f
1 changed files with 2 additions and 2 deletions

View File

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