diff --git a/src/worker.ts b/src/worker.ts index f850293..4d866de 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -34,10 +34,7 @@ const logResult = async (request: CFWRequest, result: Response) => { } const [streamForLog, streamForResult] = result.body.tee(); try { - const logResult: { data: string } = await new Response(streamForLog).json(); - const logResult: { data: string } = await new Response( - streamForLog - ).json(); + const resultForLog: { data: string } = await new Response(streamForLog).json(); await tracker.trackEvent( request,