diff --git a/x/ccv/provider/client/cli/query.go b/x/ccv/provider/client/cli/query.go index c54e6f7cf1..1d6e26350b 100644 --- a/x/ccv/provider/client/cli/query.go +++ b/x/ccv/provider/client/cli/query.go @@ -88,7 +88,7 @@ func CmdConsumerChains() *cobra.Command { req := &types.QueryConsumerChainsRequest{} - if len(args) > 0 && args[0] != "" { + if args[0] != "" { phase, err := strconv.ParseInt(args[0], 10, 32) if err != nil { return err @@ -96,7 +96,7 @@ func CmdConsumerChains() *cobra.Command { req.Phase = types.ConsumerPhase(phase) } - if len(args) > 1 && args[1] != "" { + if args[1] != "" { limit, err := strconv.ParseInt(args[1], 10, 32) if err != nil { return err