Browse Source

don't explicitly nil err

(make @whyrusleeping happy)
pull/1422/head
Steven Allen 7 years ago
parent
commit
da59505d57
  1. 2
      p2p/transport/websocket/conn.go

2
p2p/transport/websocket/conn.go

@ -83,7 +83,7 @@ func (c *Conn) Write(b []byte) (n int, err error) {
// close error, subsequent and concurrent calls will return nil.
// This method is thread-safe.
func (c *Conn) Close() error {
var err error = nil
var err error
c.closeOnce.Do(func() {
if c.done != nil {
c.done()

Loading…
Cancel
Save