From a8ff1848c8a38f889fd23f6ef24b3cd31bdfaf1e Mon Sep 17 00:00:00 2001 From: Surjya Sahoo Date: Thu, 18 Nov 2021 20:22:54 +0530 Subject: [PATCH] Remove unwanted removeListener call for `busboy.close` event listener --- index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/index.js b/index.js index 6060b3e..3224098 100644 --- a/index.js +++ b/index.js @@ -75,7 +75,6 @@ module.exports = function (request, options) { function cleanup() { busboy.removeListener('field', onField); busboy.removeListener('file', customOnFile || onFile); - busboy.removeListener('close', cleanup); busboy.removeListener('end', cleanup); busboy.removeListener('error', onEnd); busboy.removeListener('partsLimit', onEnd);