mirror of
https://github.com/fluencelabs/redis
synced 2025-04-25 18:42:13 +00:00
Change switch statment to if statment
This commit is contained in:
parent
a73503530e
commit
ca532c94ef
@ -241,11 +241,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