diff options
author | guybe7 <guy.benoish@redislabs.com> | 2022-09-28 11:46:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-28 12:46:54 +0300 |
commit | bd40d3158b083920164fc3cb410dd141df3e21a7 (patch) | |
tree | 39fa5e4af88a76439fb10382d26daf15671d14da /src/t_stream.c | |
parent | 6aab4cb73662578174a14dc846fdc64e1dd71eb2 (diff) | |
download | redis-bd40d3158b083920164fc3cb410dd141df3e21a7.tar.gz |
Remove redundant arity checks in XINFO (#11331)
The arity in the JSON files of the subcommands reneder this
code unreachable
Diffstat (limited to 'src/t_stream.c')
-rw-r--r-- | src/t_stream.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/t_stream.c b/src/t_stream.c index ea38ab45d..65a9b5899 100644 --- a/src/t_stream.c +++ b/src/t_stream.c @@ -3838,11 +3838,6 @@ void xinfoCommand(client *c) { /* HELP is special. Handle it ASAP. */ if (!strcasecmp(c->argv[1]->ptr,"HELP")) { - if (c->argc != 2) { - addReplySubcommandSyntaxError(c); - return; - } - const char *help[] = { "CONSUMERS <key> <groupname>", " Show consumers of <groupname>.", @@ -3854,9 +3849,6 @@ NULL }; addReplyHelp(c, help); return; - } else if (c->argc < 3) { - addReplySubcommandSyntaxError(c); - return; } /* With the exception of HELP handled before any other sub commands, all |