Skip to content

Commit 699f397

Browse files
authored
Update streamReader Close() method to return error (#681)
1 parent 38b16a3 commit 699f397

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stream_reader.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,6 @@ func (stream *streamReader[T]) unmarshalError() (errResp *ErrorResponse) {
108108
return
109109
}
110110

111-
func (stream *streamReader[T]) Close() {
112-
stream.response.Body.Close()
111+
func (stream *streamReader[T]) Close() error {
112+
return stream.response.Body.Close()
113113
}

0 commit comments

Comments
 (0)