@@ -63,8 +63,6 @@ const {
6363
6464const { isArrayBufferView } = require ( 'internal/util/types' ) ;
6565
66- const { getOptionValue } = require ( 'internal/options' ) ;
67-
6866function isJwk ( obj ) {
6967 return obj != null && obj . kty !== undefined ;
7068}
@@ -204,16 +202,14 @@ function createJob(mode, type, options) {
204202 hash, mgf1Hash, hashAlgorithm, mgf1HashAlgorithm, saltLength
205203 } = options ;
206204
207- const pendingDeprecation = getOptionValue ( '--pending-deprecation' ) ;
208-
209205 if ( saltLength !== undefined )
210206 validateInt32 ( saltLength , 'options.saltLength' , 0 ) ;
211207 if ( hashAlgorithm !== undefined )
212208 validateString ( hashAlgorithm , 'options.hashAlgorithm' ) ;
213209 if ( mgf1HashAlgorithm !== undefined )
214210 validateString ( mgf1HashAlgorithm , 'options.mgf1HashAlgorithm' ) ;
215211 if ( hash !== undefined ) {
216- pendingDeprecation && process . emitWarning (
212+ process . emitWarning (
217213 '"options.hash" is deprecated, ' +
218214 'use "options.hashAlgorithm" instead.' ,
219215 'DeprecationWarning' ,
@@ -224,7 +220,7 @@ function createJob(mode, type, options) {
224220 }
225221 }
226222 if ( mgf1Hash !== undefined ) {
227- pendingDeprecation && process . emitWarning (
223+ process . emitWarning (
228224 '"options.mgf1Hash" is deprecated, ' +
229225 'use "options.mgf1HashAlgorithm" instead.' ,
230226 'DeprecationWarning' ,
0 commit comments