mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
pvs/V1037: two case branches doing the same thing (#10527)
This commit is contained in:
parent
9412dcb6ae
commit
ba7ec994ae
@ -384,10 +384,7 @@ void msgpack_rpc_from_object(const Object result, msgpack_packer *const res)
|
||||
&& kObjectTypeTabpage == kObjectTypeWindow + 1,
|
||||
"Buffer, window and tabpage enum items are in order");
|
||||
switch (cur.aobj->type) {
|
||||
case kObjectTypeNil: {
|
||||
msgpack_pack_nil(res);
|
||||
break;
|
||||
}
|
||||
case kObjectTypeNil:
|
||||
case kObjectTypeLuaRef: {
|
||||
// TODO(bfredl): could also be an error. Though kObjectTypeLuaRef
|
||||
// should only appear when the caller has opted in to handle references,
|
||||
|
Loading…
Reference in New Issue
Block a user