forked from quic-go/quic-go
remove redundant error check in the stream
This commit is contained in:
@@ -129,10 +129,7 @@ func (s *stream) StreamID() protocol.StreamID {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *stream) Close() error {
|
func (s *stream) Close() error {
|
||||||
if err := s.sendStream.Close(); err != nil {
|
return s.sendStream.Close()
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *stream) SetDeadline(t time.Time) error {
|
func (s *stream) SetDeadline(t time.Time) error {
|
||||||
|
|||||||
Reference in New Issue
Block a user