diff options
author | zeripath <art27@cantab.net> | 2020-04-30 21:24:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 21:24:08 +0100 |
commit | 4974b7c120102b49548197e58c7a58181ba52170 (patch) | |
tree | a7769043d9c541bfd1af688ffa7fa76b75b99223 /models | |
parent | ab69b9b1a60a83cf2b5d6c021da0cb35540df10f (diff) | |
download | gitea-4974b7c120102b49548197e58c7a58181ba52170.tar.gz gitea-4974b7c120102b49548197e58c7a58181ba52170.zip |
Fix spelling mistake with Rewiew (#11262)
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'models')
-rw-r--r-- | models/review.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/models/review.go b/models/review.go index bbd4983fc2..c6203e7097 100644 --- a/models/review.go +++ b/models/review.go @@ -467,8 +467,8 @@ func InsertReviews(reviews []*Review) error { return sess.Commit() } -// AddRewiewRequest add a review request from one reviewer -func AddRewiewRequest(issue *Issue, reviewer *User, doer *User) (comment *Comment, err error) { +// AddReviewRequest add a review request from one reviewer +func AddReviewRequest(issue *Issue, reviewer *User, doer *User) (comment *Comment, err error) { review, err := GetReviewerByIssueIDAndUserID(issue.ID, reviewer.ID) if err != nil { return @@ -534,8 +534,8 @@ func AddRewiewRequest(issue *Issue, reviewer *User, doer *User) (comment *Commen return comment, sess.Commit() } -//RemoveRewiewRequest remove a review request from one reviewer -func RemoveRewiewRequest(issue *Issue, reviewer *User, doer *User) (comment *Comment, err error) { +//RemoveReviewRequest remove a review request from one reviewer +func RemoveReviewRequest(issue *Issue, reviewer *User, doer *User) (comment *Comment, err error) { review, err := GetReviewerByIssueIDAndUserID(issue.ID, reviewer.ID) if err != nil { return |