Skip to content

Commit 43cf124

Browse files
authored
Update models/pull/review_state.go
Signed-off-by: silverwind <[email protected]>
1 parent 24aa69d commit 43cf124

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/pull/review_state.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ func (rs *ReviewState) GetViewedFileCount() int {
5353
if len(rs.UpdatedFiles) == 0 {
5454
return 0
5555
}
56-
var viewedFiles int
56+
var numViewedFiles int
5757
for _, state := range rs.UpdatedFiles {
5858
if state == Viewed {
59-
viewedFiles++
59+
numViewedFiles++
6060
}
6161
}
62-
return viewedFiles
62+
return numViewedFiles
6363
}
6464

6565
// GetReviewState returns the ReviewState with all given values prefilled, whether or not it exists in the database.

0 commit comments

Comments
 (0)