Remove unused code and TODO and clarify with comment.

This commit is contained in:
Cody Soyland 2018-03-15 15:27:01 -05:00
parent 754de2e057
commit 85b33f1bfb

View file

@ -91,13 +91,8 @@ func (d *DiagnosticsCollector) Flush() error {
if err != nil {
return err
}
// Intentionally ignoring response body, as user does not need to be notified of error.
defer resp.Body.Close()
// TODO verify response
_, err = ioutil.ReadAll(resp.Body)
if err != nil {
return err
}
return nil
}