Skip to content

Commit

Permalink
Linting...
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferry Schoenmakers committed Feb 1, 2024
1 parent 2d987ad commit 8ed0325
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions diagnostic_aggregator/src/aggregator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 8ed0325

Please sign in to comment.