Skip to content

Commit

Permalink
remove fn
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Oct 15, 2024
1 parent 4cd64f3 commit cc18ceb
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/core/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -977,14 +977,6 @@ class InflateStream extends stream.Transform {
}
}

/**
* @param {zlib.ZlibOptions} [zlibOptions]
* @returns {InflateStream}
*/
function createInflate (zlibOptions) {
return new InflateStream(zlibOptions)
}

/**
* Return the list of transform streams necessary
* to decode a body stream of the given content encoding.
Expand All @@ -1011,7 +1003,7 @@ function getDecoders (contentEncoding) {
})
)
} else if (coding === 'deflate') {
decoders.push(createInflate({
decoders.push(new InflateStream({
flush: zlib.constants.Z_SYNC_FLUSH,
finishFlush: zlib.constants.Z_SYNC_FLUSH
}))
Expand Down

0 comments on commit cc18ceb

Please sign in to comment.