mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 18:28:19 +00:00
pvs/V1037: two case branches doing the same thing (#10527)
This commit is contained in:

committed by
Justin M. Keyes

parent
9412dcb6ae
commit
ba7ec994ae
@@ -384,10 +384,7 @@ void msgpack_rpc_from_object(const Object result, msgpack_packer *const res)
|
|||||||
&& kObjectTypeTabpage == kObjectTypeWindow + 1,
|
&& kObjectTypeTabpage == kObjectTypeWindow + 1,
|
||||||
"Buffer, window and tabpage enum items are in order");
|
"Buffer, window and tabpage enum items are in order");
|
||||||
switch (cur.aobj->type) {
|
switch (cur.aobj->type) {
|
||||||
case kObjectTypeNil: {
|
case kObjectTypeNil:
|
||||||
msgpack_pack_nil(res);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case kObjectTypeLuaRef: {
|
case kObjectTypeLuaRef: {
|
||||||
// TODO(bfredl): could also be an error. Though kObjectTypeLuaRef
|
// TODO(bfredl): could also be an error. Though kObjectTypeLuaRef
|
||||||
// should only appear when the caller has opted in to handle references,
|
// should only appear when the caller has opted in to handle references,
|
||||||
|
Reference in New Issue
Block a user