Browse Source

websocket: drop unreachable code

Change-Id: I54bcd2803ef270e8bb785a3ecb85ee7bf0a5b18b
Reviewed-on: https://go-review.googlesource.com/13053
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Mikio Hara 10 năm trước cách đây
mục cha
commit
19fe7f4f42
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      websocket/server.go

+ 0 - 1
websocket/server.go

@@ -74,7 +74,6 @@ func (s Server) serveWebSocket(w http.ResponseWriter, req *http.Request) {
 	rwc, buf, err := w.(http.Hijacker).Hijack()
 	if err != nil {
 		panic("Hijack failed: " + err.Error())
-		return
 	}
 	// The server should abort the WebSocket connection if it finds
 	// the client did not send a handshake that matches with protocol