Commit 3ec1a001 authored by miter's avatar miter
Browse files

Change switch statment to if statment

parent 41d16f7a
...@@ -246,11 +246,9 @@ void freeStringObject(robj *o) { ...@@ -246,11 +246,9 @@ void freeStringObject(robj *o) {
} }
void freeListObject(robj *o) { void freeListObject(robj *o) {
switch (o->encoding) { if (o->encoding == OBJ_ENCODING_QUICKLIST) {
case OBJ_ENCODING_QUICKLIST:
quicklistRelease(o->ptr); quicklistRelease(o->ptr);
break; } else {
default:
serverPanic("Unknown list encoding type"); serverPanic("Unknown list encoding type");
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment