diff --git a/stream.go b/stream.go index 704489bc4..c98ac8d5d 100644 --- a/stream.go +++ b/stream.go @@ -129,10 +129,7 @@ func (s *stream) StreamID() protocol.StreamID { } func (s *stream) Close() error { - if err := s.sendStream.Close(); err != nil { - return err - } - return nil + return s.sendStream.Close() } func (s *stream) SetDeadline(t time.Time) error {