From 3af43ee7cd3b386ae1523fefbd3183a78991be10 Mon Sep 17 00:00:00 2001 From: John Henderson Date: Fri, 30 Apr 2021 12:00:59 -0400 Subject: [PATCH] fix(deleteClaim): throw CacheClientNotProvided if necessary --- src/iam.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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({