mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-13 08:03:32 +02:00
[code-quality] fix readability-braces-around-statements (#7273)
This commit is contained in:
@@ -20,10 +20,11 @@ class LVGLNumber : public number::Number {
|
||||
|
||||
protected:
|
||||
void control(float value) override {
|
||||
if (this->control_lambda_ != nullptr)
|
||||
if (this->control_lambda_ != nullptr) {
|
||||
this->control_lambda_(value);
|
||||
else
|
||||
} else {
|
||||
this->initial_state_ = value;
|
||||
}
|
||||
}
|
||||
std::function<void(float)> control_lambda_{};
|
||||
optional<float> initial_state_{};
|
||||
|
||||
Reference in New Issue
Block a user