Skip to content

Commit dc4eb74

Browse files
Apply suggestions from code review
Co-authored-by: wxiaoguang <[email protected]> Signed-off-by: Zettat123 <[email protected]>
1 parent 896f53d commit dc4eb74

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

services/pull/commit_status.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ func MergeRequiredContextsCommitStatus(commitStatuses []*git_model.CommitStatus,
4747
requiredContextMatched = true
4848
}
4949
}
50-
if !requiredContextMatched {
51-
allRequiredContextsMatched = false
52-
}
50+
allRequiredContextsMatched = allRequiredContextsMatched && requiredContextMatched
5351
}
5452
if len(requiredCommitStatuses) == 0 {
5553
return commitstatus.CommitStatusPending

0 commit comments

Comments
 (0)