Skip to content

Commit e875088

Browse files
CI Insights Botjlsherrill
authored andcommitted
Do not send notification with no advisories
1 parent abf72ae commit e875088

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

evaluator/notifications.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func publishNewAdvisoriesNotification(tx *gorm.DB, system *models.SystemPlatform
8181
if err != nil {
8282
return errors.Wrap(err, "getting unnotified advisories failed")
8383
}
84-
if advisories == nil {
84+
if len(advisories) == 0 {
8585
return nil
8686
}
8787

0 commit comments

Comments
 (0)