mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: use appropriate type conversion
index variable is being passed as uint64 so we shouldn't use Int. Also the if loop is redundant so remove it.
This commit is contained in:
@@ -76,10 +76,7 @@ func execWatchCommandFunc(c *cli.Context, ki client.KeysAPI) {
|
||||
cmdArgs = args[:argslen-1]
|
||||
}
|
||||
|
||||
index := 0
|
||||
if c.Int("after-index") != 0 {
|
||||
index = c.Int("after-index")
|
||||
}
|
||||
index := c.Uint64("after-index")
|
||||
|
||||
recursive := c.Bool("recursive")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user