Skip to content

Commit

Permalink
refactor: remove additional .getReader() call
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhinger committed Jul 16, 2024
1 parent 52be254 commit cb309d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/presets/aws-lambda/runtime/aws-lambda-streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const handler = awslambda.streamifyResponse(
reader = Readable.toWeb(Readable.from(JSON.stringify(r.body))).getReader();
}

await streamToNodeStream(reader.getReader(), responseStream);
await streamToNodeStream(reader, responseStream);
writer.end();
}
}
Expand Down

0 comments on commit cb309d2

Please sign in to comment.