(method string, path string, body io.Reader)
| 6324 | } |
| 6325 | |
| 6326 | func drainResponseBody(method string, path string, body io.Reader) error { |
| 6327 | if _, err := io.Copy(io.Discard, body); err != nil { |
| 6328 | return fmt.Errorf("cli: drain %s %s response: %w", method, path, err) |
| 6329 | } |
| 6330 | return nil |
| 6331 | } |
no outgoing calls
no test coverage detected