Commit 5254c2d3 authored by antirez's avatar antirez
Browse files

Removed useless tryObjectEncoding() call from ZRANK.

parent 4160bf04
......@@ -2886,7 +2886,7 @@ void zrankGenericCommand(redisClient *c, int reverse) {
dictEntry *de;
double score;
ele = c->argv[2] = tryObjectEncoding(c->argv[2]);
ele = c->argv[2];
de = dictFind(zs->dict,ele);
if (de != NULL) {
score = *(double*)dictGetVal(de);
......
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