소스 검색

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 년 전
부모
커밋
19fe7f4f42
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  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()
 	rwc, buf, err := w.(http.Hijacker).Hijack()
 	if err != nil {
 	if err != nil {
 		panic("Hijack failed: " + err.Error())
 		panic("Hijack failed: " + err.Error())
-		return
 	}
 	}
 	// The server should abort the WebSocket connection if it finds
 	// The server should abort the WebSocket connection if it finds
 	// the client did not send a handshake that matches with protocol
 	// the client did not send a handshake that matches with protocol