mirror of
https://github.com/caddyserver/caddy.git
synced 2026-01-16 17:20:34 +00:00
chore: Dumb prealloc lint fix (#7430)
This commit is contained in:
@@ -761,7 +761,7 @@ type ServerBlock struct {
|
||||
}
|
||||
|
||||
func (sb ServerBlock) GetKeysText() []string {
|
||||
res := []string{}
|
||||
res := make([]string, 0, len(sb.Keys))
|
||||
for _, k := range sb.Keys {
|
||||
res = append(res, k.Text)
|
||||
}
|
||||
|
||||
@@ -930,6 +930,7 @@ func parseLogHelper(h Helper, globalLogNames map[string]struct{}) ([]ConfigValue
|
||||
// modifications to the parsing behavior.
|
||||
parseAsGlobalOption := globalLogNames != nil
|
||||
|
||||
// nolint:prealloc
|
||||
var configValues []ConfigValue
|
||||
|
||||
// Logic below expects that a name is always present when a
|
||||
|
||||
Reference in New Issue
Block a user