mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-30 10:11:23 +02:00
Update notification.go
fixed nil pointer / panic
This commit is contained in:
parent
f5d82b5dc6
commit
d78ce6dc59
@ -67,6 +67,9 @@ 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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user