Skip to content

Commit

Permalink
merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
razzkumar committed Sep 25, 2019
2 parents 5524c47 + eac36d5 commit 4a7c5bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions deployment/utils/slack/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ func Notify(url string, text string, color string) {

content := fmt.Sprintf(`{"attachments": [{"text": %q, "color": "%s"}]}`, "```"+message+"```", color)

resp, _ := http.Client.R().
http.Client.R().
SetHeader("Content-Type", "application/json").
SetBody([]byte(content)).
Post(url)

fmt.Println("Slack Hook:- " + resp.String())
}

0 comments on commit 4a7c5bd

Please sign in to comment.