We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a510c5d commit 941bedfCopy full SHA for 941bedf
lib/zlib.js
@@ -361,11 +361,10 @@ ZlibBase.prototype._final = function(callback) {
361
// Z_NO_FLUSH (< Z_TREES) < Z_BLOCK < Z_PARTIAL_FLUSH <
362
// Z_SYNC_FLUSH < Z_FULL_FLUSH < Z_FINISH
363
const flushiness = [];
364
-let i = 0;
365
const kFlushFlagList = [Z_NO_FLUSH, Z_BLOCK, Z_PARTIAL_FLUSH,
366
Z_SYNC_FLUSH, Z_FULL_FLUSH, Z_FINISH];
367
-for (const flushFlag of kFlushFlagList) {
368
- flushiness[flushFlag] = i++;
+for (let i = 0; i < kFlushFlagList.length; i++) {
+ flushiness[kFlushFlagList[i]] = i;
369
}
370
371
function maxFlush(a, b) {
0 commit comments