mirror of
https://github.com/0x5eal/rbxts-pako.git
synced 2025-04-21 20:34:04 +01:00
lint fix
This commit is contained in:
parent
aecf1fa6b1
commit
e4593facbb
1 changed files with 3 additions and 3 deletions
|
@ -11,9 +11,9 @@ var gzheader = require('./zlib/gzheader');
|
||||||
|
|
||||||
|
|
||||||
// calculate tail size of utf8 char by current byte value
|
// calculate tail size of utf8 char by current byte value
|
||||||
function utf8tail(code) {
|
/*function utf8tail(code) {
|
||||||
return code >= 252 ? 6 : code >= 248 ? 5 : code >= 240 ? 4 : code >= 224 ? 3 : code >= 192 ? 2 : 1;
|
return code >= 252 ? 6 : code >= 248 ? 5 : code >= 240 ? 4 : code >= 224 ? 3 : code >= 192 ? 2 : 1;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* class Inflate
|
* class Inflate
|
||||||
|
@ -180,7 +180,7 @@ Inflate.prototype.push = function(data, mode) {
|
||||||
var strm = this.strm;
|
var strm = this.strm;
|
||||||
var chunkSize = this.options.chunkSize;
|
var chunkSize = this.options.chunkSize;
|
||||||
var status, _mode;
|
var status, _mode;
|
||||||
var next_out_utf8_index, tail, utf8str;
|
//var next_out_utf8_index, tail, utf8str;
|
||||||
|
|
||||||
if (this.ended) { return false; }
|
if (this.ended) { return false; }
|
||||||
_mode = (mode === ~~mode) ? mode : ((mode === true) ? c.Z_FINISH : c.Z_NO_FLUSH);
|
_mode = (mode === ~~mode) ? mode : ((mode === true) ? c.Z_FINISH : c.Z_NO_FLUSH);
|
||||||
|
|
Loading…
Add table
Reference in a new issue