Added remarks about zero birthdays.
This commit is contained in:
parent
0c132657ff
commit
91d49f65ec
1 changed files with 6 additions and 0 deletions
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue