mirror of
https://github.com/coredns/coredns.git
synced 2025-12-11 12:55:11 -05:00
fix: fix slice init length (#6901)
Signed-off-by: rusttech <gopher@before.tech>
This commit is contained in:
@@ -43,7 +43,7 @@ type Azure struct {
|
||||
// New validates the input DNS zones and initializes the Azure struct.
|
||||
func New(ctx context.Context, publicClient publicdns.RecordSetsClient, privateClient privatedns.RecordSetsClient, keys map[string][]string, accessMap map[string]string) (*Azure, error) {
|
||||
zones := make(map[string][]*zone, len(keys))
|
||||
names := make([]string, len(keys))
|
||||
names := make([]string, 0, len(keys))
|
||||
var private bool
|
||||
|
||||
for resourceGroup, znames := range keys {
|
||||
|
||||
Reference in New Issue
Block a user