changeset 27819:f68947167523 v8.2.4435

patch 8.2.4435: dead code in checking map() arguments Commit: https://github.com/vim/vim/commit/7842761bbaa7965fa52b5e3eadf162bc7fa6cdb1 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 21 18:34:30 2022 +0000 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 https://github.com/vim/vim/issues/9815)
author Bram Moolenaar <Bram@vim.org>
date Mon, 21 Feb 2022 19:45:03 +0100
parents b5760eab491e
children ba1d4ad637c0
files src/evalfunc.c src/version.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -588,7 +588,6 @@ arg_map_func(type_T *type, type_T *decl_
 				    ? &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);
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4435,
+/**/
     4434,
 /**/
     4433,