Skip to content

Commit

Permalink
Slack fixed. (#6)
Browse files Browse the repository at this point in the history
Signed-off-by: viktor-kurchenko <[email protected]>
  • Loading branch information
viktor-kurchenko authored Mar 29, 2023
1 parent f714fc8 commit 1950d91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/slack/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ func Notify(resourceFile, url, title string) error {
if err := report.ReadFromFile(resourceFile); err != nil {
return err
}
if len(report.Accounts) == 0 {
log.Println("Nothing to send...")
return nil
}
log.Println("Preparing slack messages...")
messages := reportToSlackMessages(title, report)
log.Println("Sending slack notification...")
Expand Down

0 comments on commit 1950d91

Please sign in to comment.