git-hulk commented on code in PR #1865:
URL: https://github.com/apache/kvrocks/pull/1865#discussion_r1387401917
##########
src/commands/cmd_json.cc:
##########
@@ -291,6 +291,64 @@ class CommandJsonArrPop : public Commander {
int64_t index_ = -1;
};
+class CommanderJsonArrIndex : public Commander {
+ public:
+ Status Parse(const std::vector<std::string> &args) override {
+ if (args.size() < 4 || args.size() > 6) {
Review Comment:
```suggestion
if (args.size() > 6) {
```
Line 361 required the number of arguments must be at least 4, so can remove
this check.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]