fix log output (#5938)

tokarchuk/v1.17
Sergey Romanov 6 years ago committed by zeripath
parent 12ee544411
commit 67567eff0e
  1. 2
      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
}

Loading…
Cancel
Save