Remove unneeded error check
This commit is contained in:
parent
2163981872
commit
4e53464fe2
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue