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:
parent
59f994412f
commit
a2d05212b7
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user