Skip to content

Commit

Permalink
fix nit
Browse files Browse the repository at this point in the history
  • Loading branch information
a1012112796 committed Feb 9, 2021
1 parent 9b9d7b3 commit 28a7f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/pull/review.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func DismissReview(reviewID int64, message string, doer *models.User, isDismiss
}

if review.Type != models.ReviewTypeApprove && review.Type != models.ReviewTypeReject {
return nil, fmt.Errorf("Wrong using")
return nil, fmt.Errorf("not need to dismiss this review because it's type is not Approve or change request")
}

if err = models.DismissReview(review, isDismiss); err != nil {
Expand Down

0 comments on commit 28a7f96

Please sign in to comment.