mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
remove unused variable
This commit is contained in:
parent
3e9c20f63b
commit
b670a16282
@ -195,7 +195,7 @@ void listTypeConvert(robj *subject, int enc) {
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
void pushGenericCommand(client *c, int where) {
|
||||
int j, waiting = 0, pushed = 0;
|
||||
int j, pushed = 0;
|
||||
robj *lobj = lookupKeyWrite(c->db,c->argv[1]);
|
||||
|
||||
if (lobj && lobj->type != OBJ_LIST) {
|
||||
@ -214,7 +214,7 @@ void pushGenericCommand(client *c, int where) {
|
||||
listTypePush(lobj,c->argv[j],where);
|
||||
pushed++;
|
||||
}
|
||||
addReplyLongLong(c, waiting + (lobj ? listTypeLength(lobj) : 0));
|
||||
addReplyLongLong(c, (lobj ? listTypeLength(lobj) : 0));
|
||||
if (pushed) {
|
||||
char *event = (where == LIST_HEAD) ? "lpush" : "rpush";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user