1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-24 10:07:21 +02:00

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
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)
}