File tree 1 file changed +0
-2
lines changed
1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ exports = module.exports = internals.Compression = class {
47
47
48
48
addEncoder ( encoding , encoder ) {
49
49
50
- Hoek . assert ( this . encoders [ encoding ] === undefined , `Cannot override existing encoder for ${ encoding } ` ) ;
51
50
Hoek . assert ( typeof encoder === 'function' , `Invalid encoder function for ${ encoding } ` ) ;
52
51
this . encoders [ encoding ] = encoder ;
53
52
this . encodings . unshift ( encoding ) ;
@@ -56,7 +55,6 @@ exports = module.exports = internals.Compression = class {
56
55
57
56
addDecoder ( encoding , decoder ) {
58
57
59
- Hoek . assert ( this . decoders [ encoding ] === undefined , `Cannot override existing decoder for ${ encoding } ` ) ;
60
58
Hoek . assert ( typeof decoder === 'function' , `Invalid decoder function for ${ encoding } ` ) ;
61
59
this . decoders [ encoding ] = decoder ;
62
60
}
You can’t perform that action at this time.
0 commit comments