diff --git a/src/iam.ts b/src/iam.ts index 7448af60..0eca4d26 100644 --- a/src/iam.ts +++ b/src/iam.ts @@ -1415,8 +1415,9 @@ export class IAM extends IAMBase { async deleteClaim({ id }: { id: string }) { if (this._cacheClient) { await this._cacheClient.deleteClaim({ claimId: id }); + } else { + throw new CacheClientNotProvidedError(); } - throw new CacheClientNotProvidedError(); } async subscribeTo({