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)
This commit is contained in:
Bram Moolenaar
2022-02-21 18:34:30 +00:00
parent 16b51d26fe
commit 7842761bba
2 changed files with 2 additions and 1 deletions

View File

@ -588,7 +588,6 @@ arg_map_func(type_T *type, type_T *decl_type UNUSED, argcontext_T *context)
? &t_any : expected_ret; ? &t_any : expected_ret;
if (args[0] == NULL) if (args[0] == NULL)
args[0] = &t_unknown; args[0] = &t_unknown;
return check_arg_type(&t_func_exp, type, context);
where.wt_index = 2; where.wt_index = 2;
return check_type(&t_func_exp, type, TRUE, where); return check_type(&t_func_exp, type, TRUE, where);

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
4435,
/**/ /**/
4434, 4434,
/**/ /**/