@@ -381,14 +381,8 @@ export default class LDClientImpl implements LDClient, LDClientIdentifyResult {
381381 return { status : 'error' , error : new Error ( 'Identify called before start' ) } ;
382382 }
383383
384- let effectiveOptions = identifyOptions ;
385- if ( this . _requiresStart && identifyOptions ?. sheddable === undefined ) {
386- effectiveOptions = { ...identifyOptions , sheddable : true } ;
387- }
388-
389- const identifyTimeout = effectiveOptions ?. timeout ?? DEFAULT_IDENTIFY_TIMEOUT_SECONDS ;
390- const noTimeout =
391- effectiveOptions ?. timeout === undefined && effectiveOptions ?. noTimeout === true ;
384+ const identifyTimeout = identifyOptions ?. timeout ?? DEFAULT_IDENTIFY_TIMEOUT_SECONDS ;
385+ const noTimeout = identifyOptions ?. timeout === undefined && identifyOptions ?. noTimeout === true ;
392386
393387 // When noTimeout is specified, and a timeout is not specified, then this condition cannot
394388 // be encountered. (Our default would need to be greater)
@@ -410,7 +404,7 @@ export default class LDClientImpl implements LDClient, LDClientIdentifyResult {
410404 }
411405 const checkedContext = Context . fromLDContext ( context ) ;
412406 if ( checkedContext . valid ) {
413- const afterIdentify = this . _hookRunner . identify ( context , effectiveOptions ?. timeout ) ;
407+ const afterIdentify = this . _hookRunner . identify ( context , identifyOptions ?. timeout ) ;
414408 return {
415409 context,
416410 checkedContext,
@@ -443,7 +437,7 @@ export default class LDClientImpl implements LDClient, LDClientIdentifyResult {
443437 identifyResolve ,
444438 identifyReject ,
445439 checkedContext ,
446- effectiveOptions ,
440+ identifyOptions ,
447441 ) ;
448442
449443 return identifyPromise ;
@@ -458,7 +452,7 @@ export default class LDClientImpl implements LDClient, LDClientIdentifyResult {
458452 }
459453 } ,
460454 } ,
461- effectiveOptions ?. sheddable ?? false ,
455+ identifyOptions ?. sheddable ?? false ,
462456 )
463457 . then ( ( res ) => {
464458 if ( res . status === 'error' ) {
0 commit comments