Skip to content

Commit

Permalink
fix(deleteClaim): throw CacheClientNotProvided if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhender committed Apr 30, 2021
1 parent d203eb8 commit 3af43ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/iam.ts
Expand Up @@ -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({
Expand Down

0 comments on commit 3af43ee

Please sign in to comment.