diff --git a/diagnostics.go b/diagnostics.go index 710f66c2d..08d77a03c 100644 --- a/diagnostics.go +++ b/diagnostics.go @@ -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 }