fixed panic in notification plugin code

This commit is contained in:
Brad Rydzewski 2014-08-14 12:36:45 -07:00
parent 1dec169812
commit 2593aeca27

View file

@ -67,7 +67,9 @@ func (n *Notification) Send(context *model.Request) error {
} }
// send email notifications // 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) log.Println(err)
} }