Skip to content

Commit

Permalink
Fix gofmt issue
Browse files Browse the repository at this point in the history
Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
  • Loading branch information
PrasadG193 committed Jul 13, 2020
1 parent dcf14d0 commit 1389d38
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/notify/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,6 @@ func (s *Slack) SendEvent(event events.Event) error {
// SendMessage sends message to slack channel
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 {
log.Errorf("Error in sending slack message %s", err.Error())
Expand Down

0 comments on commit 1389d38

Please sign in to comment.