chore: Dumb prealloc lint fix (#7430)

This commit is contained in:
Francis Lavoie 2026-01-13 14:13:43 -05:00 committed by GitHub
parent 28103aafba
commit 90972fbebc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 17 additions and 6 deletions

View file

@ -404,7 +404,7 @@ func (m MatchFile) selectFile(r *http.Request) (bool, error) {
}
// for each glob result, combine all the forms of the path
var candidates []matchCandidate
candidates := make([]matchCandidate, 0, len(globResults))
for _, result := range globResults {
candidates = append(candidates, matchCandidate{
fullpath: result,