CCExtractor / CCExtractor/ultimate_alarm_clock

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

Open
#906 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Dart
Stars
112
Forks
227
PR merge metrics
No merged PRs in 30d

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.