Skip to content

Commit 1c4167c

Browse files
no need to call is identity available everywhere
1 parent 12ae483 commit 1c4167c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/sdkBase.ts

-3
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ export abstract class SdkBase {
159159
}
160160
this._callbackManager.runCallbacks(EventType.IdentityUpdated, {});
161161
}
162-
this.isIdentityAvailable();
163162
}
164163

165164
public getIdentity(): Identity | null {
@@ -292,7 +291,6 @@ export abstract class SdkBase {
292291

293292
this.setInitComplete(true);
294293
this._callbackManager?.runCallbacks(EventType.InitCompleted, {});
295-
this.isIdentityAvailable();
296294
if (this.hasOptedOut()) this._callbackManager.runCallbacks(EventType.OptoutReceived, {});
297295
}
298296

@@ -510,7 +508,6 @@ export abstract class SdkBase {
510508
} else {
511509
const errorText = 'Unexpected status received from CSTG endpoint.';
512510
this._logger.warn(errorText);
513-
this.isIdentityAvailable();
514511
throw new Error(errorText);
515512
}
516513
}

0 commit comments

Comments
 (0)