mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Merge pull request #3778 from MiterV1/unstable
Change switch statment to if statment
This commit is contained in:
commit
2e4f53a711
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user