Merge pull request #3778 from MiterV1/unstable

Change switch statment to if statment
This commit is contained in:
Salvatore Sanfilippo
2017-01-26 13:41:59 +01:00
committed by GitHub

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