mirror of https://github.com/go-gitea/gitea.git
Check if reviewer is nil
Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
parent
f64f8e0b1d
commit
4ad72dec57
|
@ -177,6 +177,9 @@ func CreateReview(opts CreateReviewOptions) (*Review, error) {
|
|||
}
|
||||
|
||||
func getCurrentReview(e Engine, reviewer *User, issue *Issue) (*Review, error) {
|
||||
if reviewer == nil {
|
||||
return nil, nil
|
||||
}
|
||||
reviews, err := findReviews(e, FindReviewOptions{
|
||||
Type: ReviewTypePending,
|
||||
IssueID: issue.ID,
|
||||
|
|
Loading…
Reference in New Issue