Skip to content

Bug: getTriggeredAlarm returns alarms.first without guarding empty results. #906

@NihalDR

Description

@NihalDR

Description

pass a time with no enabled alarms and it throws. Fix by returning nullable type (AlarmModel?) or throwing a controlled domain error when alarms.isEmpty.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions