diff --git a/src/t_hash.c b/src/t_hash.c index 3ccacdc1..298414f8 100644 --- a/src/t_hash.c +++ b/src/t_hash.c @@ -763,7 +763,7 @@ void hexistsCommand(redisClient *c) { void hscanCommand(redisClient *c) { robj *o; - if ((o= lookupKeyReadOrReply(c,c->argv[1],shared.emptyscan)) == NULL || + if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.emptyscan)) == NULL || checkType(c,o,REDIS_HASH)) return; scanGenericCommand(c,o); } diff --git a/src/t_zset.c b/src/t_zset.c index 9d3a7902..1ff289ce 100644 --- a/src/t_zset.c +++ b/src/t_zset.c @@ -2211,7 +2211,7 @@ void zrevrankCommand(redisClient *c) { void zscanCommand(redisClient *c) { robj *o; - if ((o= lookupKeyReadOrReply(c,c->argv[1],shared.emptyscan)) == NULL || + if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.emptyscan)) == NULL || checkType(c,o,REDIS_ZSET)) return; scanGenericCommand(c,o); }