Browse Source

use explicit return values

pull/1439/head
Hlib 5 years ago
parent
commit
3416b29bcd
  1. 4
      p2p/muxer/yamux/stream.go

4
p2p/muxer/yamux/stream.go

@ -16,7 +16,7 @@ func (s *stream) Read(b []byte) (n int, err error) {
err = mux.ErrReset
}
return
return n, err
}
func (s *stream) Write(b []byte) (n int, err error) {
@ -25,7 +25,7 @@ func (s *stream) Write(b []byte) (n int, err error) {
err = mux.ErrReset
}
return
return n, err
}
func (s *stream) Close() error {

Loading…
Cancel
Save