diff --git a/internal/app/app.go b/internal/app/app.go index b13caef..8f03027 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -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()) } }