Skip to content

Commit

Permalink
no need to call is identity available everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysmithTTD committed Feb 25, 2025
1 parent 12ae483 commit 1c4167c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/sdkBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ export abstract class SdkBase {
}
this._callbackManager.runCallbacks(EventType.IdentityUpdated, {});
}
this.isIdentityAvailable();
}

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

this.setInitComplete(true);
this._callbackManager?.runCallbacks(EventType.InitCompleted, {});
this.isIdentityAvailable();
if (this.hasOptedOut()) this._callbackManager.runCallbacks(EventType.OptoutReceived, {});
}

Expand Down Expand Up @@ -510,7 +508,6 @@ export abstract class SdkBase {
} else {
const errorText = 'Unexpected status received from CSTG endpoint.';
this._logger.warn(errorText);
this.isIdentityAvailable();
throw new Error(errorText);
}
}
Expand Down

0 comments on commit 1c4167c

Please sign in to comment.