Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
bd40d315
Unverified
Commit
bd40d315
authored
Sep 28, 2022
by
guybe7
Committed by
GitHub
Sep 28, 2022
Browse files
Remove redundant arity checks in XINFO (#11331)
The arity in the JSON files of the subcommands reneder this code unreachable
parent
6aab4cb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
bd40d315
...
@@ -3838,11 +3838,6 @@ void xinfoCommand(client *c) {
...
@@ -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
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment