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:
Sahdev P. Zala
2020-02-08 22:01:20 -05:00
parent 4e5314e9b5
commit acb33a5f3f

View File

@@ -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")