From 7bdc8fdf756c068f070d27c644d7fc7cf9910dc4 Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Tue, 24 Sep 2019 12:03:05 +0200 Subject: #915: Removes braces for single statement if branch Just a cleanup. --- sources/ogAdmServer.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sources') diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp index 1b806a9..12fdf41 100644 --- a/sources/ogAdmServer.cpp +++ b/sources/ogAdmServer.cpp @@ -3765,13 +3765,12 @@ static int og_cmd_session(json_t *element, struct og_msg_params *params) return -1; json_object_foreach(element, key, value) { - if (!strcmp(key, "clients")) { + if (!strcmp(key, "clients")) err = og_json_parse_clients(value, params); - } else if (!strcmp(key, "disk")) { + else if (!strcmp(key, "disk")) err = og_json_parse_disk(value, params); - } else if (!strcmp(key, "partition")) { + else if (!strcmp(key, "partition")) err = og_json_parse_partition(value, params); - } if (err < 0) return err; -- cgit v1.2.3-18-g5258