summaryrefslogtreecommitdiffstats
path: root/models/branches.go
diff options
context:
space:
mode:
authorSergey Romanov <xxsmotur@gmail.com>2019-02-03 02:56:15 +0500
committerzeripath <art27@cantab.net>2019-02-02 21:56:15 +0000
commit67567eff0e5614553cbd396ae7e1adfde6fa33c0 (patch)
treea7544af7855b826cd8c751c247307fafc803adee /models/branches.go
parent12ee544411e2c3de410459494ab40536b45941bc (diff)
downloadgitea-67567eff0e5614553cbd396ae7e1adfde6fa33c0.tar.gz
gitea-67567eff0e5614553cbd396ae7e1adfde6fa33c0.zip
fix log output (#5938)
Diffstat (limited to 'models/branches.go')
-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
}