Skip to content

Commit

Permalink
last requested change
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Nov 16, 2023
1 parent 3e85511 commit b166abd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/middleware/node/get-payload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ export function getPayload(request: IncomingMessage): Promise<string> {
// istanbul ignore next
request.on("error", (error: Error) => reject(new AggregateError([error])));
request.on("data", (chunk: string) => (data += chunk));
request.on("end", () => {
resolve(data);
});
request.on("end", () => resolve(data));
});
}

0 comments on commit b166abd

Please sign in to comment.