Skip to content

Commit

Permalink
Merge pull request #8 from dasrick/v1-maintenance
Browse files Browse the repository at this point in the history
remove log or error, dep update
  • Loading branch information
dasrick authored Mar 29, 2020
2 parents 97487a6 + c5f0dad commit 652e2e7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
26 changes: 17 additions & 9 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions send.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ func NewClient() (API, error) {
// Send - will post a notification to MS Teams incomingWebhookURL
func (c teamsClient) Send(webhookURL string, webhookMessage MessageCard) error {
// validate url
// needs to look like: https://outlook.office.com/webhook/xxx
valid, err := isValidWebhookURL(webhookURL)
if !valid {
return err
Expand All @@ -49,7 +48,6 @@ func (c teamsClient) Send(webhookURL string, webhookMessage MessageCard) error {
// do the request
res, err := c.httpClient.Do(req)
if err != nil {
log.Println(err)
return err
}
if res.StatusCode >= 299 {
Expand Down

0 comments on commit 652e2e7

Please sign in to comment.