diff options
author | Ihor Antonov <ngortheone@users.noreply.github.com> | 2019-07-17 21:12:45 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-18 03:12:45 +0200 |
commit | ba7ec994ae44499cb0633b0c9d55636f94d2a524 (patch) | |
tree | 958f2e29ff2f5507d881215316a5b4bb3ba4413b /src/nvim/msgpack_rpc/helpers.c | |
parent | 9412dcb6ae34700a65d1aeab809c13fcf6de793e (diff) | |
download | rneovim-ba7ec994ae44499cb0633b0c9d55636f94d2a524.tar.gz rneovim-ba7ec994ae44499cb0633b0c9d55636f94d2a524.tar.bz2 rneovim-ba7ec994ae44499cb0633b0c9d55636f94d2a524.zip |
pvs/V1037: two case branches doing the same thing (#10527)
Diffstat (limited to 'src/nvim/msgpack_rpc/helpers.c')
-rw-r--r-- | src/nvim/msgpack_rpc/helpers.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/msgpack_rpc/helpers.c b/src/nvim/msgpack_rpc/helpers.c index 3f768dcc0c..18b0bf3c16 100644 --- a/src/nvim/msgpack_rpc/helpers.c +++ b/src/nvim/msgpack_rpc/helpers.c @@ -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, |