Skip to content

Commit a2d0521

Browse files
authored
Update modules/structs/commit_status.go
1 parent 59f9944 commit a2d0521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/structs/commit_status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (css CommitStatusState) String() string {
3838
// NoBetterThan returns true if this State is no better than the given State
3939
// This function only handles the states defined in CommitStatusPriorities
4040
func (css CommitStatusState) NoBetterThan(css2 CommitStatusState) bool {
41-
// NoBetterThan only handles the 6 states above
41+
// only handle the states with defined priorities above, it always returns false for undefined priorities
4242
if _, exist := commitStatusPriorities[css]; !exist {
4343
return false
4444
}

0 commit comments

Comments
 (0)