Skip to content

Commit

Permalink
make test more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed Aug 28, 2024
1 parent b4a43b4 commit 120dde3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/zip-writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ function getHeaderInfo(options) {
if (compressionMethod === UNDEFINED_VALUE) {
compressionMethod = compressed ? COMPRESSION_METHOD_DEFLATE : COMPRESSION_METHOD_STORE;
}
if (compressed) {
if (compressionMethod == COMPRESSION_METHOD_DEFLATE) {
if (level >= 1 && level < 3) {
bitFlag = bitFlag | 0b110;
}
Expand Down

0 comments on commit 120dde3

Please sign in to comment.