From 2593aeca278e758ae63581203c9e87b826991927 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Thu, 14 Aug 2014 12:36:45 -0700 Subject: [PATCH] fixed panic in notification plugin code --- plugin/notify/notification.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/notify/notification.go b/plugin/notify/notification.go index 18cc2881d..6a9fd0bbc 100644 --- a/plugin/notify/notification.go +++ b/plugin/notify/notification.go @@ -67,7 +67,9 @@ func (n *Notification) Send(context *model.Request) error { } // send email notifications - if err := n.GitHub.Send(context); err != nil { + // TODO (bradrydzewski) need to improve this code + githubStatus := new(github.GitHub) + if err := githubStatus.Send(context); err != nil { log.Println(err) }