Removed conditional

Signed-off-by: Andrew Block <andy.block@gmail.com>
Signed-off-by: Drew Gonzales <drew.gonzales@datadoghq.com>
pull/11760/head
Andrew Block 3 years ago committed by Drew Gonzales
parent b238792860
commit 310b33476e
No known key found for this signature in database

@ -123,7 +123,7 @@ func (g *HTTPGetter) httpClient() (*http.Client, error) {
} }
}) })
if (g.opts.certFile != "" && g.opts.keyFile != "") || g.opts.caFile != "" || g.opts.insecureSkipVerifyTLS { if (g.opts.certFile != "" && g.opts.keyFile != "") || g.opts.caFile != "" {
tlsConf, err := tlsutil.NewClientTLS(g.opts.certFile, g.opts.keyFile, g.opts.caFile, g.opts.insecureSkipVerifyTLS) tlsConf, err := tlsutil.NewClientTLS(g.opts.certFile, g.opts.keyFile, g.opts.caFile, g.opts.insecureSkipVerifyTLS)
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")

Loading…
Cancel
Save