From c559ac800555d0ab0bd236e9ea938f3b96703379 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 20 Oct 2016 23:57:09 +0100 Subject: [PATCH] Don't `else' after return. Simplify control flow. --- sbr/utils.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sbr/utils.c b/sbr/utils.c index fff1aacd..fbada4e6 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -481,15 +481,14 @@ nmh_version_changed (int older) { } return old_version < current_version ? 1 : 0; - } else { - if (context_version == NULL || strcmp(context_version, "nmh-" VERSION) != 0) { - context_replace ("Version", "nmh-" VERSION); + } - return 1; - } else { - return 0; - } + if (context_version == NULL || strcmp(context_version, "nmh-" VERSION) != 0) { + context_replace ("Version", "nmh-" VERSION); + return 1; } + + return 0; } -- 2.56.0