@@ -386,14 +386,8 @@ export default class LDClientImpl implements LDClient, LDClientIdentifyResult {
386386 return { status : 'error' , error : new Error ( 'Identify called before start' ) } ;
387387 }
388388
389- let effectiveOptions = identifyOptions ;
390- if ( this . _requiresStart && identifyOptions ?. sheddable === undefined ) {
391- effectiveOptions = { ...identifyOptions , sheddable : true } ;
392- }
393-
394- const identifyTimeout = effectiveOptions ?. timeout ?? DEFAULT_IDENTIFY_TIMEOUT_SECONDS ;
395- const noTimeout =
396- effectiveOptions ?. timeout === undefined && effectiveOptions ?. noTimeout === true ;
389+ const identifyTimeout = identifyOptions ?. timeout ?? DEFAULT_IDENTIFY_TIMEOUT_SECONDS ;
390+ const noTimeout = identifyOptions ?. timeout === undefined && identifyOptions ?. noTimeout === true ;
397391
398392 // When noTimeout is specified, and a timeout is not specified, then this condition cannot
399393 // be encountered. (Our default would need to be greater)
@@ -415,7 +409,7 @@ export default class LDClientImpl implements LDClient, LDClientIdentifyResult {
415409 }
416410 const checkedContext = Context . fromLDContext ( context ) ;
417411 if ( checkedContext . valid ) {
418- const afterIdentify = this . _hookRunner . identify ( context , effectiveOptions ?. timeout ) ;
412+ const afterIdentify = this . _hookRunner . identify ( context , identifyOptions ?. timeout ) ;
419413 return {
420414 context,
421415 checkedContext,
@@ -448,7 +442,7 @@ export default class LDClientImpl implements LDClient, LDClientIdentifyResult {
448442 identifyResolve ,
449443 identifyReject ,
450444 checkedContext ,
451- effectiveOptions ,
445+ identifyOptions ,
452446 ) ;
453447
454448 return identifyPromise ;
@@ -463,7 +457,7 @@ export default class LDClientImpl implements LDClient, LDClientIdentifyResult {
463457 }
464458 } ,
465459 } ,
466- effectiveOptions ?. sheddable ?? false ,
460+ identifyOptions ?. sheddable ?? false ,
467461 )
468462 . then ( ( res ) => {
469463 if ( res . status === 'error' ) {
0 commit comments