Change switch statment to if statment

This commit is contained in:
miter 2017-01-26 21:36:26 +09:00
parent 41d16f7a4a
commit 3ec1a001fb

View File

@ -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");
}
}