fixed panic in notification plugin code
This commit is contained in:
parent
1dec169812
commit
2593aeca27
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue