1
0
mirror of https://github.com/nikoksr/notify.git synced 2025-02-07 13:08:12 +02:00

Update service/msteams/ms_teams.go

Co-authored-by: Renan Bastos <renanbastos.tec@gmail.com>
This commit is contained in:
Niko Köser 2021-01-31 01:18:22 +01:00 committed by GitHub
parent 94e2bf0c5c
commit d8877b86dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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