summaryrefslogtreecommitdiff
path: root/src/testing.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2023-01-25 21:05:38 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-25 21:05:38 +0000
commit032713f8299abd92fcfb1e490d1ae5c1ecadde41 (patch)
tree579ceb5ed304c1ebb7ca76e192eef76c3e73cfa2 /src/testing.c
parent0f843ef091eceb470caece1d90fdfe08926fe076 (diff)
downloadvim-git-032713f8299abd92fcfb1e490d1ae5c1ecadde41.tar.gz
patch 9.0.1245: code is indented more than necessaryv9.0.1245
Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11879)
Diffstat (limited to 'src/testing.c')
-rw-r--r--src/testing.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testing.c b/src/testing.c
index 039ee0c9b..b31d192a6 100644
--- a/src/testing.c
+++ b/src/testing.c
@@ -55,8 +55,10 @@ ga_concat_esc(garray_T *gap, char_u *p, int clen)
mch_memmove(buf, p, clen);
buf[clen] = NUL;
ga_concat(gap, buf);
+ return;
}
- else switch (*p)
+
+ switch (*p)
{
case BS: ga_concat(gap, (char_u *)"\\b"); break;
case ESC: ga_concat(gap, (char_u *)"\\e"); break;