Skip to content

Commit 4cc87b9

Browse files
authored
Merge pull request #270 from nleclerc/fixEmptyEntryError
Fixed async decompression of empty zip entries.
2 parents 8176b02 + e64e32c commit 4cc87b9

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)