aboutsummaryrefslogtreecommitdiff
path: root/sounds
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-07-09 16:08:47 -0500
committerCraig Jennings <c@cjennings.net>2026-07-09 16:08:47 -0500
commitce3a1014d929b94bd90cbc565608655d10d843bc (patch)
tree029d13d83241fd5f6259f052aadcf0d429c9f46f /sounds
parentad21a480cb4b833fba94339e8b9e13401e7c8873 (diff)
downloadchime-ce3a1014d929b94bd90cbc565608655d10d843bc.tar.gz
chime-ce3a1014d929b94bd90cbc565608655d10d843bc.zip
fix: drop nil day counts before taking the minimum
chime--days-until-event maps over every timestamp on an event and keeps a day count only for the all-day ones. A timed timestamp maps to nil. An event carrying both kinds handed -min a list with a nil in it, which signals wrong-type-argument. An event with no all-day timestamp handed it an empty list, which signals too. Both crash on every tick once chime-day-wide-advance-notice is on. The recurring failure walks the async counter up to the persistent-failure warning. The map now runs through -non-nil, and an empty result returns nil, which the docstring already promised. I added a nil branch to chime--day-wide-notification-text so a nil count can't reach the = comparisons. The advance-notice window should already exclude an event with no all-day timestamp, so that branch is a guard rather than a live path.
Diffstat (limited to 'sounds')
0 files changed, 0 insertions, 0 deletions