Fix code style
@ -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)
@ -291,7 +291,6 @@ func TestDownloadTLS(t *testing.T) {
t.Fatal(errors.Wrap(err, "can't create TLS config for client"))
tlsConf.ServerName = "helm.sh"
tlsSrv.TLS = tlsConf
tlsSrv.StartTLS()
@ -371,7 +371,6 @@ func (s *Server) StartTLS() {
panic(err)
s.srv.TLS = tlsConf
s.srv.StartTLS()