#915: Removes braces for single statement if branch

Just a cleanup.
master
Roberto Hueso Gómez 2019-09-24 12:03:05 +02:00 committed by OpenGnSys Support Team
parent 8b1beddbe4
commit 7bdc8fdf75
1 changed files with 3 additions and 4 deletions

View File

@ -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;