Skip to content

Commit e64e32c

Browse files
committed
Removed improperly raised error while decompressing empty file asynchronously.
1 parent cb300c9 commit e64e32c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: zipEntry.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ module.exports = function (/*Buffer*/input) {
4747
}
4848

4949
var compressedData = getCompressedDataFromZip();
50-
50+
5151
if (compressedData.length === 0) {
52-
if (async && callback) callback(compressedData, Utils.Errors.NO_DATA);//si added error.
52+
// File is empty, nothing to decompress.
53+
if (async && callback) callback(compressedData);
5354
return compressedData;
5455
}
5556

0 commit comments

Comments
 (0)