Skip to content

Commit 74760d5

Browse files
committed
update comment
1 parent e6b9834 commit 74760d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/git/protected_branch_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func FindRepoProtectedBranchRules(ctx context.Context, repoID int64) (ProtectedB
4848
if err != nil {
4949
return nil, err
5050
}
51-
rules.sort() // to make non-glob rules have higher priority, and for same glob/non-glob rules, first created rules have higher priority
51+
rules.sort() // make sure first match is detected in right order
5252
return rules, nil
5353
}
5454

0 commit comments

Comments
 (0)