From dd805c2246318cb654806ef79bb1983a48a0f004 Mon Sep 17 00:00:00 2001 From: Andy Gardner Date: Wed, 25 Feb 2015 12:23:16 +0200 Subject: [PATCH] Fixing bug which prevented Webhook notifications on build failure --- plugin/notify/webhook/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/notify/webhook/webhook.go b/plugin/notify/webhook/webhook.go index b9aff0ab5..61a3423b0 100644 --- a/plugin/notify/webhook/webhook.go +++ b/plugin/notify/webhook/webhook.go @@ -18,7 +18,7 @@ func (w *Webhook) Send(context *model.Request) error { switch { case context.Commit.Status == model.StatusSuccess && w.Success != nil && *w.Success == true: return w.send(context) - case context.Commit.Status == model.StatusFailure && w.Failure != nil && *w.Success == true: + case context.Commit.Status == model.StatusFailure && w.Failure != nil && *w.Failure == true: return w.send(context) }