]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.4435: dead code in checking map() arguments v8.2.4435
authorBram Moolenaar <Bram@vim.org>
Mon, 21 Feb 2022 18:34:30 +0000 (18:34 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 21 Feb 2022 18:34:30 +0000 (18:34 +0000)
Problem:    Dead code in checking map() arguments. (Dominique PellĂ©)
Solution:   Remove the first return statement. (closes #9815)

src/evalfunc.c
src/version.c

index cb038e4c8dadb146f68fe8f8baa934ce540c0e17..38a7aa27cd41fe5fab7435cbdc542bebf4591b94 100644 (file)
@@ -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);
index 6d75667f66454326638908b0b75cdfdeb5a89f8f..9e21411946d10ec1c533c347b3894eaed0bd07b3 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4435,
 /**/
     4434,
 /**/