From: Bram Moolenaar Date: Mon, 21 Feb 2022 18:34:30 +0000 (+0000) Subject: patch 8.2.4435: dead code in checking map() arguments X-Git-Tag: v8.2.4435 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7842761bbaa7965fa52b5e3eadf162bc7fa6cdb1;p=thirdparty%2Fvim.git patch 8.2.4435: dead code in checking map() arguments Problem: Dead code in checking map() arguments. (Dominique Pellé) Solution: Remove the first return statement. (closes #9815) --- diff --git a/src/evalfunc.c b/src/evalfunc.c index cb038e4c8d..38a7aa27cd 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -588,7 +588,6 @@ arg_map_func(type_T *type, type_T *decl_type UNUSED, argcontext_T *context) ? &t_any : expected_ret; if (args[0] == NULL) args[0] = &t_unknown; - return check_arg_type(&t_func_exp, type, context); where.wt_index = 2; return check_type(&t_func_exp, type, TRUE, where); diff --git a/src/version.c b/src/version.c index 6d75667f66..9e21411946 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4435, /**/ 4434, /**/