[code-quality] fix readability-braces-around-statements (#7273)

This commit is contained in:
tomaszduda23
2024-08-14 04:14:29 +02:00
committed by GitHub
parent 56e05998ef
commit 4cb174585c
13 changed files with 108 additions and 65 deletions
+3 -2
View File
@@ -20,10 +20,11 @@ class LVGLSwitch : public switch_::Switch {
protected:
void write_state(bool value) override {
if (this->state_lambda_ != nullptr)
if (this->state_lambda_ != nullptr) {
this->state_lambda_(value);
else
} else {
this->initial_state_ = value;
}
}
std::function<void(bool)> state_lambda_{};
optional<bool> initial_state_{};