summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2023-01-02 16:54:53 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-02 16:54:53 +0000
commitdc4daa3a3915fba11ac87d27977240d9a5e0d47d (patch)
tree7c28de30cdf3c6a351bd41795612be078f451c9f /src/ex_docmd.c
parenta2942c74683be3f67c6044c2886dc6c237358b3d (diff)
patch 9.0.1132: code is indented more than neededv9.0.1132
Problem: Code is indented more than needed. Solution: Use an early return to reduce indentation. (Yegappan Lakshmanan, closes #11769)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 9a507c90fa..4755952a51 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -7049,12 +7049,12 @@ ex_find(exarg_T *eap)
}
}
- if (fname != NULL)
- {
- eap->arg = fname;
- do_exedit(eap, NULL);
- vim_free(fname);
- }
+ if (fname == NULL)
+ return;
+
+ eap->arg = fname;
+ do_exedit(eap, NULL);
+ vim_free(fname);
}
/*