From c78ffb45e8160527adc1c5c5b43e494598b06072 Mon Sep 17 00:00:00 2001 From: Delweng Zheng Date: Mon, 11 Jul 2016 09:13:36 +0800 Subject: [PATCH] Fix(http notify): enable if Url is not empty --- notify_center.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notify_center.go b/notify_center.go index 78cdb81..56eecae 100644 --- a/notify_center.go +++ b/notify_center.go @@ -36,7 +36,7 @@ type NotifyCenter struct { func LoadNotifiers(app *ApplicationContext) error { notifiers := []notifier.Notifier{} - if app.Config.Httpnotifier.Enable { + if app.Config.Httpnotifier.Url != "" { if httpNotifier, err := NewHttpNotifier(app); err == nil { notifiers = append(notifiers, httpNotifier) }