Added remarks about zero birthdays.

This commit is contained in:
Benjamin A. Shelton 2026-10-23 23:41:11 -06:00
commit 91d49f65ec
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -141,6 +141,12 @@ func (a *App) daily() {
} else {
a.logger.Error("could not retrieve this week's birthdays:", err)
}
// When no birthdays are present, an error is raised preventing the code
// from getting to this point.
//
// I'm somewhat concerned that once the error handling is resolved, this
// could get triggered without some guards. Considering checkout
// sb.Len() or the total birthdays.
a.bot.SendMarkdownMessage(chat.ID, sb.String())
}
}