Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanrikulu committed Feb 23, 2024
1 parent 329243f commit 2eedd89
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Check warning on line 37 in src/worker.ts

View workflow job for this annotation

GitHub Actions / Lint on Node 18.x

'resultForLog' is assigned a value but never used

Check failure on line 37 in src/worker.ts

View workflow job for this annotation

GitHub Actions / Lint on Node 18.x

Replace `streamForLog` with `⏎······streamForLog⏎····`

await tracker.trackEvent(
request,
Expand Down

0 comments on commit 2eedd89

Please sign in to comment.