Permalink
Browse files

Remove unnecessary condition in _dictExpandIfNeeded (dict.c)

  • Loading branch information...
1 parent c87a408 commit dee0b939fcd6650edfd8705f0685cd8430750085 @openbaas openbaas committed with Nov 25, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/dict.c
View
@@ -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;
}

0 comments on commit dee0b93

Please sign in to comment.