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
846cf12a
Commit
846cf12a
authored
Jul 17, 2018
by
dejun.xdj
Browse files
Streams: remove meaningless if condition.
It's already checked if xreadgroup is set and groupname is NULL.
parent
6501b6bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
846cf12a
...
...
@@ -1365,7 +1365,7 @@ void xreadCommand(client *c) {
}
continue;
} else if (strcmp(c->argv[i]->ptr,">") == 0) {
if (!xreadgroup
|| groupname == NULL
) {
if (!xreadgroup) {
addReplyError(c,"The > ID can be specified only when calling "
"XREADGROUP using the GROUP <group> "
"<consumer> option.");
...
...
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