mirror of https://github.com/go-gitea/gitea.git
Apply suggestions from code review
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Signed-off-by: Zettat123 <zettat123@gmail.com>
This commit is contained in:
parent
896f53d3e1
commit
dc4eb74a5d
|
|
@ -47,9 +47,7 @@ func MergeRequiredContextsCommitStatus(commitStatuses []*git_model.CommitStatus,
|
|||
requiredContextMatched = true
|
||||
}
|
||||
}
|
||||
if !requiredContextMatched {
|
||||
allRequiredContextsMatched = false
|
||||
}
|
||||
allRequiredContextsMatched = allRequiredContextsMatched && requiredContextMatched
|
||||
}
|
||||
if len(requiredCommitStatuses) == 0 {
|
||||
return commitstatus.CommitStatusPending
|
||||
|
|
|
|||
Loading…
Reference in New Issue