Skip to content

Commit 5bf9bf5

Browse files
committed
Improve code.
1 parent 3600ee1 commit 5bf9bf5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

internal.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,7 @@ exports.parseMULTIPART = function(req, contentType, route, tmpDirectory, subscri
279279

280280
req.on('data', chunk => parser.write(chunk));
281281
req.on('end', function() {
282-
if (!req.buffer_exceeded)
283-
req.$upload = true;
282+
!req.buffer_exceeded && (req.$upload = true);
284283
parser.end();
285284
});
286285
};

0 commit comments

Comments
 (0)