diff options
Diffstat (limited to 'src/nvim/strings.c')
-rw-r--r-- | src/nvim/strings.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c index 4d1401293b..806e1eb5ec 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -604,10 +604,9 @@ static const void *tv_ptr(const typval_T *const tvs, int *const idxp) if (tvs[idx].v_type == VAR_UNKNOWN) { emsg(_(e_printf)); return NULL; - } else { - (*idxp)++; - return tvs[idx].vval.v_string; } + (*idxp)++; + return tvs[idx].vval.v_string; } /// Get float argument from idxp entry in tvs |