mcp: minor cleanup of some TODOs (#332)

Do a pass through TODOs to delete or address minor TODOs.
This commit is contained in:
Robert Findley 2025-08-20 12:55:19 -04:00 • committed by GitHub
commit 62d815922f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1152,7 +1152,6 @@ func (c *streamableClientConn) Write(ctx context.Context, msg jsonrpc.Message) e
}
if resp.StatusCode < 200 || resp.StatusCode >= 300 {
// TODO: do a best effort read of the body here, and format it in the error.
resp.Body.Close()
return fmt.Errorf("broken session: %v", resp.Status)
}