patch 9.0.1245: code is indented more than necessary
Problem: Code is indented more than necessary.
Solution: Use an early return where it makes sense. (Yegappan Lakshmanan,
closes #11879)
diff --git a/src/testing.c b/src/testing.c
index 039ee0c..b31d192 100644
--- a/src/testing.c
+++ b/src/testing.c
@@ -55,8 +55,10 @@
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;