Fix when no email specified
This commit is contained in:
parent
b7e9408dd2
commit
7edc3a3692
2 changed files with 6 additions and 0 deletions
2
go.mod
2
go.mod
|
@ -1,5 +1,7 @@
|
|||
module github.com/matrix-org/rageshake
|
||||
|
||||
go 1.14
|
||||
|
||||
require (
|
||||
cloud.google.com/go v0.0.0-20170406015231-675fad27ef35
|
||||
github.com/golang/protobuf v0.0.0-20170331031902-2bba0603135d
|
||||
|
|
|
@ -589,6 +589,10 @@ func buildGithubIssueRequest(p parsedPayload, listingURL string) github.IssueReq
|
|||
}
|
||||
|
||||
func (s *submitServer) sendEmail(p parsedPayload, reportDir string) error {
|
||||
if len(s.cfg.EmailAddresses) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
e := email.NewEmail()
|
||||
|
||||
e.From = "Rageshake <rageshake@matrix.org>"
|
||||
|
|
Reference in a new issue