aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/encode.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-06-27 18:45:18 +0200
committerGitHub <noreply@github.com>2024-06-27 18:45:18 +0200
commit46187117c9464dd6c09eae8e47bb279d72a01038 (patch)
treecffb3d6a5b9875893ae4de6457a656542856dc93 /src/nvim/eval/encode.c
parent724d1110b1e4699a34f489e9cdb2d25098746499 (diff)
parentbda63d5b97dfb333de6f4bd757dbb978906062a2 (diff)
downloadrneovim-46187117c9464dd6c09eae8e47bb279d72a01038.tar.gz
rneovim-46187117c9464dd6c09eae8e47bb279d72a01038.tar.bz2
rneovim-46187117c9464dd6c09eae8e47bb279d72a01038.zip
Merge pull request #29483 from bfredl/nonbinary
refactor(typval)!: remove binary distinction of binary and nonbinary strings
Diffstat (limited to 'src/nvim/eval/encode.c')
-rw-r--r--src/nvim/eval/encode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/eval/encode.c b/src/nvim/eval/encode.c
index eb70b0534d..383cf9f1bd 100644
--- a/src/nvim/eval/encode.c
+++ b/src/nvim/eval/encode.c
@@ -776,8 +776,7 @@ bool encode_check_json_key(const typval_T *const tv)
const dictitem_T *val_di;
if ((type_di = tv_dict_find(spdict, S_LEN("_TYPE"))) == NULL
|| type_di->di_tv.v_type != VAR_LIST
- || (type_di->di_tv.vval.v_list != eval_msgpack_type_lists[kMPString]
- && type_di->di_tv.vval.v_list != eval_msgpack_type_lists[kMPBinary])
+ || type_di->di_tv.vval.v_list != eval_msgpack_type_lists[kMPString]
|| (val_di = tv_dict_find(spdict, S_LEN("_VAL"))) == NULL
|| val_di->di_tv.v_type != VAR_LIST) {
return false;