Skip to content

Commit

Permalink
chore: address comments πŸ“
Browse files Browse the repository at this point in the history
  • Loading branch information
bricss committed Jun 12, 2024
1 parent ab0b6d4 commit 5466504
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/compression.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ exports = module.exports = internals.Compression = class {

addEncoder(encoding, encoder) {

Hoek.assert(this.encoders[encoding] === undefined, `Cannot override existing encoder for ${encoding}`);
Hoek.assert(typeof encoder === 'function', `Invalid encoder function for ${encoding}`);
this.encoders[encoding] = encoder;
this.encodings.unshift(encoding);
Expand All @@ -56,7 +55,6 @@ exports = module.exports = internals.Compression = class {

addDecoder(encoding, decoder) {

Hoek.assert(this.decoders[encoding] === undefined, `Cannot override existing decoder for ${encoding}`);
Hoek.assert(typeof decoder === 'function', `Invalid decoder function for ${encoding}`);
this.decoders[encoding] = decoder;
}
Expand Down

0 comments on commit 5466504

Please sign in to comment.