MSTeams Notifier: Fix init bug in teamsNotifier (#845)

This commit is contained in:
Mike Cochrane 2020-09-05 03:50:58 +12:00 committed by GitHub
parent d6f3f401a5
commit 66ec6dfa0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,12 +10,12 @@ import (
func init() {
initers = append(initers, func(cfg map[string]string) Notifier {
url, ok := cfg["slack_url"]
url, ok := cfg["teams_url"]
if !ok {
return nil
}
notifier := &slackNotifier{
notifier := &teamsNotifier{
URL: url,
}
return notifier