keep receiver name

This commit is contained in:
chebyrash 2025-11-22 14:25:14 +04:00
parent 880d1af665
commit c845f05baa

View file

@ -1551,10 +1551,10 @@ type bodyReadCloser struct {
body io.ReadCloser
}
func (b bodyReadCloser) Close() error {
func (brc bodyReadCloser) Close() error {
// For fully-buffered bodies, body is nil, so Close is a no-op.
if b.body != nil {
return b.body.Close()
if brc.body != nil {
return brc.body.Close()
}
return nil
}