Skip to content

Commit

Permalink
Update pkg/notify/slack.go
Browse files Browse the repository at this point in the history
  • Loading branch information
PrasadG193 authored Jul 13, 2020
1 parent dcf14d0 commit 68c23f7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/notify/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ func (s *Slack) SendEvent(event events.Event) error {
func (s *Slack) SendMessage(msg string) error {
log.Debug(fmt.Sprintf(">> Sending to slack: %+v", msg))

//api := slack.New(s.Token)
//if len(s.SlackURL) != 0 {
// api = slack.New(s.Token, slack.OptionAPIURL(s.SlackURL))
//}

channelID, timestamp, err := s.Client.PostMessage(s.Channel, slack.MsgOptionText(msg, false), slack.MsgOptionAsUser(true))
if err != nil {
Expand Down

0 comments on commit 68c23f7

Please sign in to comment.