etcd-runner: fix govet -shadow warning
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>release-3.4
parent
c0910085f5
commit
32ea82cd3f
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue