Skip to content
Snippets Groups Projects
Unverified Commit 4e53464f authored by Daniel Nelson's avatar Daniel Nelson
Browse files

Remove unneeded error check

parent 21639818
No related branches found
No related tags found
No related merge requests found
...@@ -111,9 +111,6 @@ func (k *Kubernetes) gatherSummary(baseURL string, acc telegraf.Accumulator) err ...@@ -111,9 +111,6 @@ func (k *Kubernetes) gatherSummary(baseURL string, acc telegraf.Accumulator) err
if k.ResponseTimeout.Duration < time.Second { if k.ResponseTimeout.Duration < time.Second {
k.ResponseTimeout.Duration = time.Second * 5 k.ResponseTimeout.Duration = time.Second * 5
} }
if err != nil {
return err
}
k.RoundTripper = &http.Transport{ k.RoundTripper = &http.Transport{
TLSHandshakeTimeout: 5 * time.Second, TLSHandshakeTimeout: 5 * time.Second,
TLSClientConfig: tlsCfg, TLSClientConfig: tlsCfg,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment