소스 검색

fix lint warning

Darien Raymond 8 년 전
부모
커밋
028b2b74c9
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      proxy/http/server.go

+ 1 - 4
proxy/http/server.go

@@ -175,10 +175,7 @@ func (s *Server) handleConnect(ctx context.Context, request *http.Request, reade
 		defer ray.InboundInput().Close()
 
 		v2reader := buf.NewReader(conn)
-		if err := buf.Copy(v2reader, ray.InboundInput(), buf.UpdateActivity(timer)); err != nil {
-			return err
-		}
-		return nil
+		return buf.Copy(v2reader, ray.InboundInput(), buf.UpdateActivity(timer))
 	})
 
 	responseDone := signal.ExecuteAsync(func() error {