From dc4daa3a3915fba11ac87d27977240d9a5e0d47d Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Mon, 2 Jan 2023 16:54:53 +0000 Subject: patch 9.0.1132: code is indented more than needed Problem: Code is indented more than needed. Solution: Use an early return to reduce indentation. (Yegappan Lakshmanan, closes #11769) --- src/ex_getln.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ex_getln.c') diff --git a/src/ex_getln.c b/src/ex_getln.c index 4884ebd8a3..49331c4178 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -4210,11 +4210,11 @@ f_getcmdtype(typval_T *argvars UNUSED, typval_T *rettv) { rettv->v_type = VAR_STRING; rettv->vval.v_string = alloc(2); - if (rettv->vval.v_string != NULL) - { - rettv->vval.v_string[0] = get_cmdline_type(); - rettv->vval.v_string[1] = NUL; - } + if (rettv->vval.v_string == NULL) + return; + + rettv->vval.v_string[0] = get_cmdline_type(); + rettv->vval.v_string[1] = NUL; } // Set the command line str to "str". -- cgit v1.2.3