diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2023-01-25 21:05:38 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-01-25 21:05:38 +0000 |
commit | 032713f8299abd92fcfb1e490d1ae5c1ecadde41 (patch) | |
tree | 579ceb5ed304c1ebb7ca76e192eef76c3e73cfa2 /src/testing.c | |
parent | 0f843ef091eceb470caece1d90fdfe08926fe076 (diff) | |
download | vim-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.c | 4 |
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; |