From 39b5223e966f8c51d1021912a7bfe44d22fb3fac Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 20 Oct 2016 23:22:04 +0100 Subject: [PATCH] Don't `else' after return. Simplify control flow. --- sbr/pidstatus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sbr/pidstatus.c b/sbr/pidstatus.c index 82f2d119..ded38edc 100644 --- a/sbr/pidstatus.c +++ b/sbr/pidstatus.c @@ -47,7 +47,9 @@ pidstatus (int status, FILE *fp, char *cp) fprintf (fp, "exit %d\n", signum); } return signum; - } else if (WIFSIGNALED(status)) { + } + + if (WIFSIGNALED(status)) { /* If child process terminated due to receipt of a signal */ signum = WTERMSIG(status); if (signum != SIGINT) { -- 2.56.0