We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24aa69d commit 43cf124Copy full SHA for 43cf124
models/pull/review_state.go
@@ -53,13 +53,13 @@ func (rs *ReviewState) GetViewedFileCount() int {
53
if len(rs.UpdatedFiles) == 0 {
54
return 0
55
}
56
- var viewedFiles int
+ var numViewedFiles int
57
for _, state := range rs.UpdatedFiles {
58
if state == Viewed {
59
- viewedFiles++
+ numViewedFiles++
60
61
62
- return viewedFiles
+ return numViewedFiles
63
64
65
// GetReviewState returns the ReviewState with all given values prefilled, whether or not it exists in the database.
0 commit comments