Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
1f0d0b09
Commit
1f0d0b09
authored
Nov 26, 2012
by
charsyam
Committed by
antirez
Nov 28, 2012
Browse files
Remove unnecessary condition in _dictExpandIfNeeded (dict.c)
parent
ccb500cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dict.c
View file @
1f0d0b09
...
@@ -621,8 +621,7 @@ static int _dictExpandIfNeeded(dict *d)
...
@@ -621,8 +621,7 @@ static int _dictExpandIfNeeded(dict *d)
(
dict_can_resize
||
(
dict_can_resize
||
d
->
ht
[
0
].
used
/
d
->
ht
[
0
].
size
>
dict_force_resize_ratio
))
d
->
ht
[
0
].
used
/
d
->
ht
[
0
].
size
>
dict_force_resize_ratio
))
{
{
return
dictExpand
(
d
,
((
d
->
ht
[
0
].
size
>
d
->
ht
[
0
].
used
)
?
return
dictExpand
(
d
,
d
->
ht
[
0
].
used
*
2
);
d
->
ht
[
0
].
size
:
d
->
ht
[
0
].
used
)
*
2
);
}
}
return
DICT_OK
;
return
DICT_OK
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment