From: Ralph Corderoy Date: Thu, 20 Oct 2016 23:06:07 +0000 (+0100) Subject: Don't `else' after goto. Simplify control flow. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/f9aee0f150e0d4bb93d1c8af5af2878423c81b04?hp=7bee8d7b3e221dbe5d5fde11d6e232482c5c454d Don't `else' after goto. Simplify control flow. --- 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);