summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/branches.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/branches.go b/models/branches.go
index a1e97ffaaa..08ab2c5b03 100644
--- a/models/branches.go
+++ b/models/branches.go
@@ -101,7 +101,7 @@ func (protectBranch *ProtectedBranch) HasEnoughApprovals(pr *PullRequest) bool {
func (protectBranch *ProtectedBranch) GetGrantedApprovalsCount(pr *PullRequest) int64 {
reviews, err := GetReviewersByPullID(pr.Issue.ID)
if err != nil {
- log.Error(1, "GetUniqueApprovalsByPullRequestID:", err)
+ log.Error(1, "GetReviewersByPullID:", err)
return 0
}