From 06f4fe8e0c12e36b43d8af4e9751e9764f8afc3b Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 26 Nov 2013 10:16:04 -0600 Subject: [PATCH] Remove the single line if statements. --- src/conf-yaml-loader.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/conf-yaml-loader.c b/src/conf-yaml-loader.c index d257eec8b3..c97ec0550f 100644 --- a/src/conf-yaml-loader.c +++ b/src/conf-yaml-loader.c @@ -699,19 +699,27 @@ ConfYamlFileIncludeTest(void) * configuration. */ ConfNode *node; node = ConfGetNode("host-mode"); - if (node == NULL) goto cleanup; - if (strcmp(node->val, "auto") != 0) goto cleanup; + if (node == NULL) + goto cleanup; + if (strcmp(node->val, "auto") != 0) + goto cleanup; node = ConfGetNode("unix-command.enabled"); - if (node == NULL) goto cleanup; - if (strcmp(node->val, "no") != 0) goto cleanup; + if (node == NULL) + goto cleanup; + if (strcmp(node->val, "no") != 0) + goto cleanup; /* Check for values that were included under a mapping. */ node = ConfGetNode("mapping.host-mode"); - if (node == NULL) goto cleanup; - if (strcmp(node->val, "auto") != 0) goto cleanup; + if (node == NULL) + goto cleanup; + if (strcmp(node->val, "auto") != 0) + goto cleanup; node = ConfGetNode("mapping.unix-command.enabled"); - if (node == NULL) goto cleanup; - if (strcmp(node->val, "no") != 0) goto cleanup; + if (node == NULL) + goto cleanup; + if (strcmp(node->val, "no") != 0) + goto cleanup; ConfDeInit(); ConfRestoreContextBackup();