Skip to content

Commit

Permalink
websocket: remove redundant error handling
Browse files Browse the repository at this point in the history
Change-Id: I1b0e8812ca5b2e3ca72948d5414d569879e54f35
Reviewed-on: https://go-review.googlesource.com/21461
Reviewed-by: Andrew Gerrand <[email protected]>
  • Loading branch information
SamWhited authored and adg committed Apr 5, 2016
1 parent afc22ee commit 318395d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions websocket/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,6 @@ func (ws *Conn) Write(msg []byte) (n int, err error) {
}
n, err = w.Write(msg)
w.Close()
if err != nil {
return n, err
}
return n, err
}

Expand Down

0 comments on commit 318395d

Please sign in to comment.