mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-01 02:28:28 +02:00
Force braces around multi-line statements (#3094)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -32,10 +32,11 @@ class BinaryOutput {
|
||||
|
||||
/// Enable or disable this binary output.
|
||||
virtual void set_state(bool state) {
|
||||
if (state)
|
||||
if (state) {
|
||||
this->turn_on();
|
||||
else
|
||||
} else {
|
||||
this->turn_off();
|
||||
}
|
||||
}
|
||||
|
||||
/// Enable this binary output.
|
||||
|
||||
Reference in New Issue
Block a user