Remove unneeded error check

This commit is contained in:
Daniel Nelson 2017-09-12 17:24:57 -07:00
parent 2163981872
commit 4e53464fe2
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
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,