Removed useless tryObjectEncoding() call from ZRANK.

This commit is contained in:
antirez 2015-07-03 09:47:08 +02:00
parent 4160bf0448
commit 5254c2d3c3

View File

@ -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);