Skip to content

Commit

Permalink
Remove unnecessary condition in _dictExpandIfNeeded (dict.c)
Browse files Browse the repository at this point in the history
  • Loading branch information
charsyam authored and antirez committed Nov 28, 2012
1 parent c87a408 commit dee0b93
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dict.c
Expand Up @@ -621,8 +621,7 @@ static int _dictExpandIfNeeded(dict *d)
(dict_can_resize ||
d->ht[0].used/d->ht[0].size > dict_force_resize_ratio))
{
return dictExpand(d, ((d->ht[0].size > d->ht[0].used) ?
d->ht[0].size : d->ht[0].used)*2);
return dictExpand(d, d->ht[0].used*2);
}
return DICT_OK;
}
Expand Down

0 comments on commit dee0b93

Please sign in to comment.