mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
lint: enable prealloc (#7493)
This commit is contained in:
@@ -63,7 +63,7 @@ func newRules(key string, args []string) ([]Rule, error) {
|
||||
return nil, fmt.Errorf("unknown flag action=%s, should be set or clear", action)
|
||||
}
|
||||
|
||||
var rules []Rule
|
||||
rules := make([]Rule, 0, len(args))
|
||||
for _, arg := range args {
|
||||
flag := strings.ToLower(arg)
|
||||
switch flag {
|
||||
|
||||
Reference in New Issue
Block a user