mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Change switch statment to if statment
This commit is contained in:
parent
41d16f7a4a
commit
3ec1a001fb
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user