Skip to content

Commit 3eda7af

Browse files
committed
refactor: Remove redundant settled guard in multipart raw-byte counter
1 parent b5a72c9 commit 3eda7af

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/Routers/FunctionsRouter.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,6 @@ export class FunctionsRouter extends PromiseRouter {
298298
// of many empty parts from exceeding the limit on the wire.
299299
let rawBytes = 0;
300300
req.on('data', chunk => {
301-
if (settled) {
302-
return;
303-
}
304301
rawBytes += chunk.length;
305302
if (rawBytes > maxBytes) {
306303
safeReject(

0 commit comments

Comments
 (0)