From d8877b86dda607cb733383b7ff4d5876c4e2b02d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niko=20K=C3=B6ser?= Date: Sun, 31 Jan 2021 01:18:22 +0100 Subject: [PATCH] Update service/msteams/ms_teams.go Co-authored-by: Renan Bastos --- service/msteams/ms_teams.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/msteams/ms_teams.go b/service/msteams/ms_teams.go index ab0bdef..ec6dcb3 100644 --- a/service/msteams/ms_teams.go +++ b/service/msteams/ms_teams.go @@ -14,7 +14,7 @@ type MSTeams struct { // New returns a new instance of a MSTeams notification service. // For more information about telegram api token: // -> https://github.com/atc0005/go-teams-notify#example-basic -func New(apiToken string) (*MSTeams, error) { +func New(apiToken string) *MSTeams { client := goteamsnotify.NewClient() m := &MSTeams{ @@ -22,7 +22,7 @@ func New(apiToken string) (*MSTeams, error) { webHooks: []string{}, } - return m, nil + return m } // DisableWebhookValidation disables the validation of webhook URLs, including the validation of known prefixes so that