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:
parent
1dec169812
commit
2593aeca27
@ -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 New Issue
Block a user