]> source.dussan.org Git - gitea.git/commitdiff
fix a small nit (#13187)
author赵智超 <1012112796@qq.com>
Sat, 17 Oct 2020 15:38:34 +0000 (23:38 +0800)
committerGitHub <noreply@github.com>
Sat, 17 Oct 2020 15:38:34 +0000 (23:38 +0800)
Signed-off-by: a1012112796 <1012112796@qq.com>
models/error.go

index be94d78891a88715d6305cc846b914408b4e32e4..b2273f74c91e198c506b1ef49af1f43819c584f7 100644 (file)
@@ -2003,7 +2003,7 @@ type ErrNotValidReviewRequest struct {
 
 // IsErrNotValidReviewRequest checks if an error is a ErrNotValidReviewRequest.
 func IsErrNotValidReviewRequest(err error) bool {
-       _, ok := err.(ErrReviewNotExist)
+       _, ok := err.(ErrNotValidReviewRequest)
        return ok
 }