Skip to content

Commit

Permalink
patch 8.2.4435: dead code in checking map() arguments
Browse files Browse the repository at this point in the history
Problem:    Dead code in checking map() arguments. (Dominique Pellé)
Solution:   Remove the first return statement. (closes #9815)
  • Loading branch information
brammool committed Feb 21, 2022
1 parent 16b51d2 commit 7842761
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/evalfunc.c
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -750,6 +750,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4435,
/**/
4434,
/**/
Expand Down

0 comments on commit 7842761

Please sign in to comment.