File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ export function sdkFactory(params: ISdkFactoryParams): SplitIO.ICsSDK | SplitIO.
30
30
// On non-recoverable errors, we should mark the SDK as destroyed and not start synchronization.
31
31
32
32
// initialization
33
- let isInit = false ;
33
+ let hasInit = false ;
34
34
const initCallbacks : ( ( ) => void ) [ ] = [ ] ;
35
35
36
36
function whenInit ( cb : ( ) => void ) {
37
- if ( isInit ) cb ( ) ;
37
+ if ( hasInit ) cb ( ) ;
38
38
else initCallbacks . push ( cb ) ;
39
39
}
40
40
@@ -93,8 +93,8 @@ export function sdkFactory(params: ISdkFactoryParams): SplitIO.ICsSDK | SplitIO.
93
93
94
94
95
95
function init ( ) {
96
- if ( isInit ) return ;
97
- isInit = true ;
96
+ if ( hasInit ) return ;
97
+ hasInit = true ;
98
98
99
99
// We will just log and allow for the SDK to end up throwing an SDK_TIMEOUT event for devs to handle.
100
100
validateAndTrackApiKey ( log , settings . core . authorizationKey ) ;
You can’t perform that action at this time.
0 commit comments