0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-18 15:12:55 +02:00

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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
}