fix: error management in readablestream writer close method

This commit is contained in:
Nicolas Lepage 2024-10-16 13:19:16 +02:00
parent 770d49a106
commit b2bd8679fd
No known key found for this signature in database
GPG Key ID: B0879E35E66D8F6F

View File

@ -78,8 +78,8 @@ func (rs *Writer) Write(b []byte) (int, error) {
} }
func (rs *Writer) Close() error { func (rs *Writer) Close() error {
rs.controller.Call("close") _, err := rs.controller.Call("close")
return nil return err
} }
func (rs *Writer) Context() context.Context { func (rs *Writer) Context() context.Context {