From ae828ce0ee0f0ad48482cc9fd773c28b137dd23d Mon Sep 17 00:00:00 2001 From: Martin Hickey Date: Wed, 21 Sep 2022 16:35:29 +0100 Subject: [PATCH] Fix code style Signed-off-by: Martin Hickey --- pkg/getter/httpgetter.go | 1 - pkg/getter/httpgetter_test.go | 1 - pkg/repo/repotest/server.go | 1 - 3 files changed, 3 deletions(-) diff --git a/pkg/getter/httpgetter.go b/pkg/getter/httpgetter.go index 6fe1aa71f..081bf059e 100644 --- a/pkg/getter/httpgetter.go +++ b/pkg/getter/httpgetter.go @@ -128,7 +128,6 @@ func (g *HTTPGetter) httpClient() (*http.Client, error) { if err != nil { return nil, errors.Wrap(err, "can't create TLS config for client") } - tlsConf.BuildNameToCertificate() sni, err := urlutil.ExtractHostname(g.opts.url) if err != nil { diff --git a/pkg/getter/httpgetter_test.go b/pkg/getter/httpgetter_test.go index 140b2c714..5a90d8b99 100644 --- a/pkg/getter/httpgetter_test.go +++ b/pkg/getter/httpgetter_test.go @@ -291,7 +291,6 @@ func TestDownloadTLS(t *testing.T) { if err != nil { t.Fatal(errors.Wrap(err, "can't create TLS config for client")) } - tlsConf.BuildNameToCertificate() tlsConf.ServerName = "helm.sh" tlsSrv.TLS = tlsConf tlsSrv.StartTLS() diff --git a/pkg/repo/repotest/server.go b/pkg/repo/repotest/server.go index 254f6620d..90ad3d856 100644 --- a/pkg/repo/repotest/server.go +++ b/pkg/repo/repotest/server.go @@ -371,7 +371,6 @@ func (s *Server) StartTLS() { if err != nil { panic(err) } - tlsConf.BuildNameToCertificate() tlsConf.ServerName = "helm.sh" s.srv.TLS = tlsConf s.srv.StartTLS()