From 65801942988b08bf07bdf4104aba1d39e82bd86f Mon Sep 17 00:00:00 2001 From: Dany Fedorov Date: Thu, 5 Jan 2023 13:59:33 +0200 Subject: [PATCH] fix: remove checking cb which is not in function scope Most times it will be ok, unless there is a global called cb. --- index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/index.js b/index.js index dbdaca8..a5f6b3e 100644 --- a/index.js +++ b/index.js @@ -32,9 +32,6 @@ module.exports = function(fn) { } chunks.push(chunk); } - if (typeof cb === 'function') { - cb(); - } } return isIntercepting;