mirror of https://mirror.osredm.com/root/redis.git
Remove redundant arity checks in XINFO (#11331)
The arity in the JSON files of the subcommands reneder this code unreachable
This commit is contained in:
parent
6aab4cb736
commit
bd40d3158b
|
@ -3838,11 +3838,6 @@ void xinfoCommand(client *c) {
|
||||||
|
|
||||||
/* HELP is special. Handle it ASAP. */
|
/* HELP is special. Handle it ASAP. */
|
||||||
if (!strcasecmp(c->argv[1]->ptr,"HELP")) {
|
if (!strcasecmp(c->argv[1]->ptr,"HELP")) {
|
||||||
if (c->argc != 2) {
|
|
||||||
addReplySubcommandSyntaxError(c);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *help[] = {
|
const char *help[] = {
|
||||||
"CONSUMERS <key> <groupname>",
|
"CONSUMERS <key> <groupname>",
|
||||||
" Show consumers of <groupname>.",
|
" Show consumers of <groupname>.",
|
||||||
|
@ -3854,9 +3849,6 @@ NULL
|
||||||
};
|
};
|
||||||
addReplyHelp(c, help);
|
addReplyHelp(c, help);
|
||||||
return;
|
return;
|
||||||
} else if (c->argc < 3) {
|
|
||||||
addReplySubcommandSyntaxError(c);
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* With the exception of HELP handled before any other sub commands, all
|
/* With the exception of HELP handled before any other sub commands, all
|
||||||
|
|
Loading…
Reference in New Issue