Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Blake Embrey <[email protected]>
  • Loading branch information
bjohansebas and blakeembrey authored Oct 25, 2024
1 parent 013f9ce commit 8cd371f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ function compression (options) {
opts.params = {}
}

if (opts.params[zlib.constants.BROTLI_PARAM_QUALITY] === undefined) {
opts.params = objectAssign({}, opts.params)
opts.params[zlib.constants.BROTLI_PARAM_QUALITY] = 4
}
opts.params = objectAssign({ [zlib.constants.BROTLI_PARAM_QUALITY]: 4 }, opts.params)
}

// options
Expand Down

0 comments on commit 8cd371f

Please sign in to comment.