[ota] void functions should return nothing (#7825)

This commit is contained in:
Keith Burzinski 2024-11-25 02:23:00 -06:00 committed by GitHub
parent 7f75f2135d
commit 6c548a1596
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@ class OTAStateChangeTrigger : public Trigger<OTAState> {
explicit OTAStateChangeTrigger(OTAComponent *parent) {
parent->add_on_state_callback([this, parent](OTAState state, float progress, uint8_t error) {
if (!parent->is_failed()) {
return trigger(state);
trigger(state);
}
});
}