controlsd: remove redundant condition

pull/23992/head
Adeeb Shihadeh 2022-01-24 21:27:56 -08:00
parent 4f827e2e9e
commit e50efd7671
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ class Controls:
# no more soft disabling condition, so go back to ENABLED
self.state = State.enabled
elif self.events.any(ET.SOFT_DISABLE) and self.soft_disable_timer > 0:
elif self.soft_disable_timer > 0:
self.current_alert_types.append(ET.SOFT_DISABLE)
elif self.soft_disable_timer <= 0: