Fix posible nil problem
This commit is contained in:
parent
550ea90c82
commit
c68fed0d8f
|
@ -64,11 +64,11 @@ func (ge *Gitea) Generate() (string, []Entry, error) {
|
|||
}
|
||||
|
||||
for _, issue := range issues {
|
||||
if options.Type == gitea.IssueTypePull && issue.PullRequest != nil && !(issue.PullRequest.HasMerged) {
|
||||
continue
|
||||
}
|
||||
|
||||
if issue != nil {
|
||||
if options.Type == gitea.IssueTypePull && issue.PullRequest != nil && !(issue.PullRequest.HasMerged) {
|
||||
continue
|
||||
}
|
||||
|
||||
entry := convertToEntry(*issue)
|
||||
entries = append(entries, entry)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue