Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 committed Dec 16, 2024
1 parent da7745c commit 4e89e29
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions stm32-modules/include/flex-stacker/flex-stacker/ui_task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ class UITask {
auto response = messages::AcknowledgePrevious{.responding_to_id = m.id};

for (auto bar_id : {StatusBarID::Internal, StatusBarID::External}) {
if (m.bar_id.has_value()) bar_id = m.bar_id.value();
if (m.bar_id.has_value()) {
bar_id = m.bar_id.value();
}
StatusBarState bar = get_statusbar_state(bar_id);
StatusBarColor color =
(m.color.has_value()) ? m.color.value() : bar.color;
Expand All @@ -150,7 +152,9 @@ class UITask {
errors::ErrorCode::SYSTEM_SET_STATUSBAR_COLOR_ERROR;
}
// Only set one status bar if one was given.
if (m.bar_id.has_value()) break;
if (m.bar_id.has_value()) {
break;
}
}

static_cast<void>(_task_registry->send_to_address(
Expand Down

0 comments on commit 4e89e29

Please sign in to comment.