Fix code style

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
pull/11368/head
Martin Hickey 2 years ago
parent bed23120b0
commit ae828ce0ee

@ -128,7 +128,6 @@ func (g *HTTPGetter) httpClient() (*http.Client, error) {
if err != nil { if err != nil {
return nil, errors.Wrap(err, "can't create TLS config for client") return nil, errors.Wrap(err, "can't create TLS config for client")
} }
tlsConf.BuildNameToCertificate()
sni, err := urlutil.ExtractHostname(g.opts.url) sni, err := urlutil.ExtractHostname(g.opts.url)
if err != nil { if err != nil {

@ -291,7 +291,6 @@ func TestDownloadTLS(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(errors.Wrap(err, "can't create TLS config for client")) t.Fatal(errors.Wrap(err, "can't create TLS config for client"))
} }
tlsConf.BuildNameToCertificate()
tlsConf.ServerName = "helm.sh" tlsConf.ServerName = "helm.sh"
tlsSrv.TLS = tlsConf tlsSrv.TLS = tlsConf
tlsSrv.StartTLS() tlsSrv.StartTLS()

@ -371,7 +371,6 @@ func (s *Server) StartTLS() {
if err != nil { if err != nil {
panic(err) panic(err)
} }
tlsConf.BuildNameToCertificate()
tlsConf.ServerName = "helm.sh" tlsConf.ServerName = "helm.sh"
s.srv.TLS = tlsConf s.srv.TLS = tlsConf
s.srv.StartTLS() s.srv.StartTLS()

Loading…
Cancel
Save