fix(shoutrrr): make shoutrrr init failure a fatal error (#561)

also writes out any (unlikely) errors from template.Execute instead of ignoring
This commit is contained in:
nils måsén 2020-05-30 19:36:20 +02:00 committed by GitHub
parent 52300804d2
commit 1081f3c24c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View file

@ -47,9 +47,7 @@ func NewNotifier(c *cobra.Command) *Notifier {
default:
log.Fatalf("Unknown notification type %q", t)
}
if tn != nil {
n.types = append(n.types, tn)
}
n.types = append(n.types, tn)
}
return n