remove redundant error check in the stream

This commit is contained in:
Marten Seemann
2020-08-16 22:55:22 +07:00
parent d7c2169c55
commit 38d1b9c3cd

View File

@@ -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 {