Commit 846cf12a authored by dejun.xdj's avatar dejun.xdj
Browse files

Streams: remove meaningless if condition.

It's already checked if xreadgroup is set and groupname is NULL.
parent 6501b6bb
......@@ -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.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment