From 220a3d62657f141d718a2ef932eb6f157fb4d80c Mon Sep 17 00:00:00 2001 From: Autokaka Date: Fri, 23 Dec 2022 12:13:15 +0800 Subject: [PATCH] fix: throw empty error in extractAllToAsync on operation done --- adm-zip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adm-zip.js b/adm-zip.js index e1f1ce5..98fa94e 100644 --- a/adm-zip.js +++ b/adm-zip.js @@ -710,9 +710,9 @@ module.exports = function (/**String*/ input, /** object */ options) { callback(getError("Unable to set times", filePath)); return; } - fileEntries.delete(entry); // call the callback if it was last entry done(); + fileEntries.delete(entry); }); }); }