Commit b670a162 authored by Pierre Chapuis's avatar Pierre Chapuis
Browse files

remove unused variable

parent 3e9c20f6
...@@ -195,7 +195,7 @@ void listTypeConvert(robj *subject, int enc) { ...@@ -195,7 +195,7 @@ void listTypeConvert(robj *subject, int enc) {
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
void pushGenericCommand(client *c, int where) { void pushGenericCommand(client *c, int where) {
int j, waiting = 0, pushed = 0; int j, pushed = 0;
robj *lobj = lookupKeyWrite(c->db,c->argv[1]); robj *lobj = lookupKeyWrite(c->db,c->argv[1]);
if (lobj && lobj->type != OBJ_LIST) { if (lobj && lobj->type != OBJ_LIST) {
...@@ -214,7 +214,7 @@ void pushGenericCommand(client *c, int where) { ...@@ -214,7 +214,7 @@ void pushGenericCommand(client *c, int where) {
listTypePush(lobj,c->argv[j],where); listTypePush(lobj,c->argv[j],where);
pushed++; pushed++;
} }
addReplyLongLong(c, waiting + (lobj ? listTypeLength(lobj) : 0)); addReplyLongLong(c, (lobj ? listTypeLength(lobj) : 0));
if (pushed) { if (pushed) {
char *event = (where == LIST_HEAD) ? "lpush" : "rpush"; char *event = (where == LIST_HEAD) ? "lpush" : "rpush";
......
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