neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 8ba47a64571b936c651a716db40e02685aedb160
parent 22d1b2423f6abe177ce8a99f460cfedd5bc7eecc
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Wed,  2 Mar 2022 15:14:52 +0800

refactor(PVS/V547): aucmd.type == CALLABLE_NONE is always false

Diffstat:
Msrc/nvim/api/autocmd.c | 7-------
1 file changed, 0 insertions(+), 7 deletions(-)

diff --git a/src/nvim/api/autocmd.c b/src/nvim/api/autocmd.c @@ -424,13 +424,6 @@ Integer nvim_create_autocmd(uint64_t channel_id, Object event, Dict(create_autoc ADD(patterns, STRING_OBJ(cstr_to_string((char *)pattern_buflocal))); } - if (aucmd.type == CALLABLE_NONE) { - api_set_error(err, - kErrorTypeValidation, - "'command' or 'callback' is required"); - goto cleanup; - } - if (opts->desc.type != kObjectTypeNil) { if (opts->desc.type == kObjectTypeString) { desc = opts->desc.data.string.data;