Update modules/structs/commit_status.go

This commit is contained in:
wxiaoguang
2025-05-27 20:02:50 +08:00
committed by GitHub
parent 59f994412f
commit a2d05212b7
+1 -1
View File
@@ -38,7 +38,7 @@ func (css CommitStatusState) String() string {
// NoBetterThan returns true if this State is no better than the given State
// This function only handles the states defined in CommitStatusPriorities
func (css CommitStatusState) NoBetterThan(css2 CommitStatusState) bool {
// NoBetterThan only handles the 6 states above
// only handle the states with defined priorities above, it always returns false for undefined priorities
if _, exist := commitStatusPriorities[css]; !exist {
return false
}