diff --git a/diagnostic_aggregator/src/aggregator.cpp b/diagnostic_aggregator/src/aggregator.cpp index cbddb04c..11ff7e47 100644 --- a/diagnostic_aggregator/src/aggregator.cpp +++ b/diagnostic_aggregator/src/aggregator.cpp @@ -238,8 +238,7 @@ void Aggregator::publishData() non_ok_status_depth = depth; msg_to_report = msg; } - if (msg->level == max_level && depth > non_ok_status_depth) - { + if (msg->level == max_level && depth > non_ok_status_depth) { // On non okay diagnostics also copy the deepest message to toplevel state non_ok_status_depth = depth; msg_to_report = msg; @@ -249,8 +248,7 @@ void Aggregator::publishData() } } // When a non-ok item was found, copy the complete status message once - if (max_level > DiagnosticStatus::OK) - { + if (max_level > DiagnosticStatus::OK) { diag_toplevel_state.name = msg_to_report->name; diag_toplevel_state.message = msg_to_report->message; diag_toplevel_state.hardware_id = msg_to_report->hardware_id; @@ -268,8 +266,7 @@ void Aggregator::publishData() non_ok_status_depth = depth; msg_to_report = msg; } - if (msg->level == max_level && depth > non_ok_status_depth) - { + if (msg->level == max_level && depth > non_ok_status_depth) { // On non okay diagnostics also copy the deepest message to toplevel state non_ok_status_depth = depth; msg_to_report = msg; @@ -279,8 +276,7 @@ void Aggregator::publishData() } } // When a non-ok item was found, copy the complete status message once - if (max_level > DiagnosticStatus::OK) - { + if (max_level > DiagnosticStatus::OK) { diag_toplevel_state.name = msg_to_report->name; diag_toplevel_state.message = msg_to_report->message; diag_toplevel_state.hardware_id = msg_to_report->hardware_id;