From f9aee0f150e0d4bb93d1c8af5af2878423c81b04 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Fri, 21 Oct 2016 00:06:07 +0100 Subject: [PATCH] Don't `else' after goto. Simplify control flow. --- uip/mhparse.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/uip/mhparse.c b/uip/mhparse.c index 50bffcf6..5dae9fd7 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -1201,10 +1201,9 @@ end_part: if (inout) goto next_part; goto last_part; - } else { - if (strcmp (bufp + 2, m->mp_stop) == 0) - goto end_part; } + if (strcmp (bufp + 2, m->mp_stop) == 0) + goto end_part; } } @@ -2324,9 +2323,8 @@ openExternal (CT ct, CT cb, CE ce, char **file, int *fd) ce->ce_file = mh_xstrdup(cachefile); ce->ce_unlink = 0; goto ready_already; - } else { - admonish (cachefile, "unable to fopen for reading"); } + admonish (cachefile, "unable to fopen for reading"); } *fd = fileno (ce->ce_fp); -- 2.56.0