We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59f9944 commit a2d0521Copy full SHA for a2d0521
modules/structs/commit_status.go
@@ -38,7 +38,7 @@ func (css CommitStatusState) String() string {
38
// NoBetterThan returns true if this State is no better than the given State
39
// This function only handles the states defined in CommitStatusPriorities
40
func (css CommitStatusState) NoBetterThan(css2 CommitStatusState) bool {
41
- // NoBetterThan only handles the 6 states above
+ // only handle the states with defined priorities above, it always returns false for undefined priorities
42
if _, exist := commitStatusPriorities[css]; !exist {
43
return false
44
}
0 commit comments