remove lint

This commit is contained in:
Tomasz Duda 2024-08-07 17:39:10 +02:00
parent 53d1538bfd
commit 17dc2b00f8

View file

@ -168,21 +168,21 @@ class ClimateTraits {
protected: protected:
void set_mode_support_(climate::ClimateMode mode, bool supported) { void set_mode_support_(climate::ClimateMode mode, bool supported) {
if (supported) { // NOLINT(bugprone-branch-clone) if (supported) {
supported_modes_.insert(mode); supported_modes_.insert(mode);
} else { } else {
supported_modes_.erase(mode); supported_modes_.erase(mode);
} }
} }
void set_fan_mode_support_(climate::ClimateFanMode mode, bool supported) { void set_fan_mode_support_(climate::ClimateFanMode mode, bool supported) {
if (supported) { // NOLINT(bugprone-branch-clone) if (supported) {
supported_fan_modes_.insert(mode); supported_fan_modes_.insert(mode);
} else { } else {
supported_fan_modes_.erase(mode); supported_fan_modes_.erase(mode);
} }
} }
void set_swing_mode_support_(climate::ClimateSwingMode mode, bool supported) { void set_swing_mode_support_(climate::ClimateSwingMode mode, bool supported) {
if (supported) { // NOLINT(bugprone-branch-clone) if (supported) {
supported_swing_modes_.insert(mode); supported_swing_modes_.insert(mode);
} else { } else {
supported_swing_modes_.erase(mode); supported_swing_modes_.erase(mode);