From 12a393f7ae7ecee5fd221c780ca32b3a5b5961d6 Mon Sep 17 00:00:00 2001 From: Houssem Ben Mabrouk Date: Wed, 13 Nov 2024 13:53:40 +0100 Subject: [PATCH] fix lint Signed-off-by: Houssem Ben Mabrouk --- connector/cert/cert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connector/cert/cert.go b/connector/cert/cert.go index fcc64b0699..0a1fc6130f 100644 --- a/connector/cert/cert.go +++ b/connector/cert/cert.go @@ -56,7 +56,7 @@ func (c *Config) Open(id string, logger *slog.Logger) (connector.Connector, erro return nil, errors.New("missing required config field 'rootCAs'") } - var rootCAs []*x509.CertPool + rootCAs := []*x509.CertPool{} for _, rootCA := range c.RootCAs { pool, err := loadCACert(rootCA) if err != nil {