summaryrefslogtreecommitdiffstats
path: root/models/review.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/review.go')
-rw-r--r--models/review.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/models/review.go b/models/review.go
index e1674e885d..0dc44a2a4c 100644
--- a/models/review.go
+++ b/models/review.go
@@ -62,7 +62,9 @@ type Review struct {
}
func (r *Review) loadCodeComments(e Engine) (err error) {
- r.CodeComments, err = fetchCodeCommentsByReview(e, r.Issue, nil, r)
+ if r.CodeComments == nil {
+ r.CodeComments, err = fetchCodeCommentsByReview(e, r.Issue, nil, r)
+ }
return
}