mirror of
https://github.com/go-gitea/gitea
synced 2024-12-26 10:34:36 +01:00
fix log output (#5938)
This commit is contained in:
parent
12ee544411
commit
67567eff0e
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ func (protectBranch *ProtectedBranch) HasEnoughApprovals(pr *PullRequest) bool {
|
||||||
func (protectBranch *ProtectedBranch) GetGrantedApprovalsCount(pr *PullRequest) int64 {
|
func (protectBranch *ProtectedBranch) GetGrantedApprovalsCount(pr *PullRequest) int64 {
|
||||||
reviews, err := GetReviewersByPullID(pr.Issue.ID)
|
reviews, err := GetReviewersByPullID(pr.Issue.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error(1, "GetUniqueApprovalsByPullRequestID:", err)
|
log.Error(1, "GetReviewersByPullID:", err)
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue