Skip to content

Commit

Permalink
remove log or error, dep update
Browse files Browse the repository at this point in the history
  • Loading branch information
dasrick committed Mar 29, 2020
1 parent 97487a6 commit c5f0dad
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 c5f0dad

Please sign in to comment.