mirror of
https://github.com/caddyserver/caddy.git
synced 2026-08-04 14:58:47 +00:00
chore: Dumb prealloc lint fix (#7430)
This commit is contained in:
parent
28103aafba
commit
90972fbebc
8 changed files with 17 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue