From d3f4754397dc1ec2b98f908ffefcbd1a4c1ecf18 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Thu, 14 Aug 2014 11:41:56 -0700 Subject: [PATCH] Update notification.go --- plugin/notify/notification.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin/notify/notification.go b/plugin/notify/notification.go index 0c11863df..18cc2881d 100644 --- a/plugin/notify/notification.go +++ b/plugin/notify/notification.go @@ -22,7 +22,7 @@ type Notification struct { Irc *IRC `yaml:"irc,omitempty"` Slack *Slack `yaml:"slack,omitempty"` - GitHub *github.GitHub `yaml:"github_status,omitempty"` + GitHub github.GitHub `yaml:"--"` } func (n *Notification) Send(context *model.Request) error { @@ -67,9 +67,6 @@ func (n *Notification) Send(context *model.Request) error { } // send email notifications - if n.GitHub == nil { - n.GitHub = &github.GitHub{} - } if err := n.GitHub.Send(context); err != nil { log.Println(err) }