Remove unneeded error check

This commit is contained in:
Daniel Nelson 2017-09-12 17:24:57 -07:00
parent 2dc18135cf
commit 1e16cb463a
1 changed files with 0 additions and 3 deletions

View File

@ -111,9 +111,6 @@ func (k *Kubernetes) gatherSummary(baseURL string, acc telegraf.Accumulator) err
if k.ResponseTimeout.Duration < time.Second {
k.ResponseTimeout.Duration = time.Second * 5
}
if err != nil {
return err
}
k.RoundTripper = &http.Transport{
TLSHandshakeTimeout: 5 * time.Second,
TLSClientConfig: tlsCfg,