[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 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_{};