Skip to content

Commit

Permalink
Merge pull request #2718 from lucas-clemente/remove-redundant-error-c…
Browse files Browse the repository at this point in the history
…heck

remove redundant error check in the stream
  • Loading branch information
marten-seemann committed Aug 17, 2020
2 parents d8d89c4 + 38d1b9c commit f865d43
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f865d43

Please sign in to comment.