Skip to content

Commit

Permalink
don't explicitly nil err
Browse files Browse the repository at this point in the history
(make @whyrusleeping happy)
  • Loading branch information
Stebalien committed Sep 5, 2017
1 parent a88b185 commit da59505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/transport/websocket/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit da59505

Please sign in to comment.