diff --git a/zipEntry.js b/zipEntry.js index e9efc7e..4921136 100644 --- a/zipEntry.js +++ b/zipEntry.js @@ -47,9 +47,10 @@ module.exports = function (/*Buffer*/input) { } var compressedData = getCompressedDataFromZip(); - + if (compressedData.length === 0) { - if (async && callback) callback(compressedData, Utils.Errors.NO_DATA);//si added error. + // File is empty, nothing to decompress. + if (async && callback) callback(compressedData); return compressedData; }