fix(notifier): regression in startup check (#2248)
The changes in the koanf commit a7e867a699
introduced a regression in the startup procedure that prevented the option to disable the startup check from having an effect. This ensures the startup check is not performed if it is disabled as it was intended.
pull/2249/head
parent
e930b76464
commit
655ae98ced
|
@ -127,7 +127,7 @@ func getProviders(config *schema.Configuration) (providers middlewares.Providers
|
||||||
errors = append(errors, fmt.Errorf("unrecognized notifier provider"))
|
errors = append(errors, fmt.Errorf("unrecognized notifier provider"))
|
||||||
}
|
}
|
||||||
|
|
||||||
if notifier != nil {
|
if notifier != nil && !config.Notifier.DisableStartupCheck {
|
||||||
if _, err := notifier.StartupCheck(); err != nil {
|
if _, err := notifier.StartupCheck(); err != nil {
|
||||||
errors = append(errors, fmt.Errorf("failed to check notification provider: %w", err))
|
errors = append(errors, fmt.Errorf("failed to check notification provider: %w", err))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue