summaryrefslogtreecommitdiffstats
path: root/sources/ogAdmServer.cpp
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2019-09-24 12:03:05 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-10-01 12:56:10 +0200
commit7bdc8fdf756c068f070d27c644d7fc7cf9910dc4 (patch)
treee76dc21c92168ac0a25618886da5536b6e3dfd61 /sources/ogAdmServer.cpp
parent8b1beddbe4c08e5dd40a73f0bf1b267c8352fa57 (diff)
#915: Removes braces for single statement if branch
Just a cleanup.
Diffstat (limited to 'sources/ogAdmServer.cpp')
-rw-r--r--sources/ogAdmServer.cpp7
1 files changed, 3 insertions, 4 deletions
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;