mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-05 20:38:27 +02:00
[code-quality] fix readability-braces-around-statements (#7273)
This commit is contained in:
@@ -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_{};
|
||||
|
||||
Reference in New Issue
Block a user