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
2e4f53a7
Commit
2e4f53a7
authored
Jan 26, 2017
by
Salvatore Sanfilippo
Committed by
GitHub
Jan 26, 2017
Browse files
Merge pull request #3778 from MiterV1/unstable
Change switch statment to if statment
parents
41d16f7a
3ec1a001
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/object.c
View file @
2e4f53a7
...
...
@@ -246,11 +246,9 @@ void freeStringObject(robj *o) {
}
void
freeListObject
(
robj
*
o
)
{
switch
(
o
->
encoding
)
{
case
OBJ_ENCODING_QUICKLIST
:
if
(
o
->
encoding
==
OBJ_ENCODING_QUICKLIST
)
{
quicklistRelease
(
o
->
ptr
);
break
;
default:
}
else
{
serverPanic
(
"Unknown list encoding type"
);
}
}
...
...
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