Remove useless var and check in zunionInterGenericCommand().

This commit is contained in:
antirez 2014-06-06 18:59:17 +02:00
parent 932cc3ebe5
commit 8b9d9d8464
1 changed files with 1 additions and 2 deletions

View File

@ -1989,8 +1989,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
if (setnum) {
/* Our union is at least as large as the largest set.
* Resize the dictionary ASAP to avoid useless rehashing. */
int minlen = setnum ? zuiLength(&src[setnum-1]) : 0;
dictExpand(accumulator,minlen);
dictExpand(accumulator,zuiLength(&src[setnum-1]));
}
/* Step 1: Create a dictionary of elements -> aggregated-scores