From 1fd4ba2e5ffda282750a877a804ab35bb5362bd2 Mon Sep 17 00:00:00 2001 From: rusttech Date: Wed, 10 Dec 2025 10:17:07 +0800 Subject: [PATCH] fix: fix slice init length (#6901) Signed-off-by: rusttech --- plugin/azure/azure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/azure/azure.go b/plugin/azure/azure.go index 369d33705..96dda9ec5 100644 --- a/plugin/azure/azure.go +++ b/plugin/azure/azure.go @@ -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 {