Skip to content

Commit

Permalink
fix: add check text is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
a3510377 committed Sep 30, 2024
1 parent e95be9e commit c883aa4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,11 @@ func checkAndNotification() error {
sendNotifications = append(sendNotifications, v)
}

if len(sendNotifications) > 0 {
if text != "" {
fmt.Println(text)
}

if len(sendNotifications) > 0 {
notification(WorkSchoolClose{Date: data.Date, Data: sendNotifications})
}
}
Expand Down

0 comments on commit c883aa4

Please sign in to comment.