Code

src/daemon/configfile.c: Remove unnecessary "continue" statements.
authorFlorian Forster <octo@collectd.org>
Tue, 9 Jun 2015 17:21:13 +0000 (18:21 +0100)
committerFlorian Forster <octo@collectd.org>
Tue, 9 Jun 2015 17:21:17 +0000 (18:21 +0100)
src/daemon/configfile.c

index dde16ca7e476be9aedce056d83df9ba8b290fcf0..244124d079e4a0ad8b196b6f402119e870604fc7 100644 (file)
@@ -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\"",