From 5b67c09d360b38efbdc002b58ae74f1b32240281 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 9 Jun 2015 18:21:13 +0100 Subject: [PATCH] src/daemon/configfile.c: Remove unnecessary "continue" statements. --- src/daemon/configfile.c | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/src/daemon/configfile.c b/src/daemon/configfile.c index dde16ca7..244124d0 100644 --- a/src/daemon/configfile.c +++ b/src/daemon/configfile.c @@ -296,24 +296,12 @@ static int dispatch_loadplugin (const oconfig_item_t *ci) if (strcasecmp("Globals", child->key) == 0) cf_util_get_flag (child, &flags, PLUGIN_FLAGS_GLOBAL); - else if (strcasecmp ("Interval", child->key) == 0) { - if (cf_util_get_cdtime (child, &ctx.interval) != 0) { - /* cf_util_get_cdtime will log an error */ - continue; - } - } - else if (strcasecmp ("FlushInterval", child->key) == 0) { - if (cf_util_get_cdtime (child, &ctx.flush_interval) != 0) { - /* cf_util_get_cdtime will log an error */ - continue; - } - } - else if (strcasecmp ("FlushTimeout", child->key) == 0) { - if (cf_util_get_cdtime (child, &ctx.flush_timeout) != 0) { - /* cf_util_get_cdtime will log an error */ - continue; - } - } + else if (strcasecmp ("Interval", child->key) == 0) + cf_util_get_cdtime (child, &ctx.interval); + else if (strcasecmp ("FlushInterval", child->key) == 0) + cf_util_get_cdtime (child, &ctx.flush_interval); + else if (strcasecmp ("FlushTimeout", child->key) == 0) + cf_util_get_cdtime (child, &ctx.flush_timeout); else { WARNING("Ignoring unknown LoadPlugin option \"%s\" " "for plugin \"%s\"", -- 2.30.2