From 43b031a6364d3b9e6c1143519f4f8d047452f68e Mon Sep 17 00:00:00 2001 From: cuishuang Date: Thu, 26 Sep 2024 11:51:37 +0800 Subject: [PATCH] fix: fix slice init length Signed-off-by: cuishuang --- ctpolicy/loglist/loglist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctpolicy/loglist/loglist.go b/ctpolicy/loglist/loglist.go index 95cc724a150..f08a36495a3 100644 --- a/ctpolicy/loglist/loglist.go +++ b/ctpolicy/loglist/loglist.go @@ -217,7 +217,7 @@ func (ll List) subset(names []string) (List, error) { } if len(remaining) > 0 { - missed := make([]string, len(remaining)) + missed := make([]string, 0, len(remaining)) for name := range remaining { missed = append(missed, fmt.Sprintf("%q", name)) }