From 3f9afc70d51002af580583706c3fa3aff13626fa Mon Sep 17 00:00:00 2001 From: Matt Straathof Date: Tue, 30 Apr 2024 13:46:12 -0700 Subject: [PATCH] fix: tsc errors within the web examples --- examples/web/cache/advanced.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/web/cache/advanced.ts b/examples/web/cache/advanced.ts index 506010425..5c56ce538 100644 --- a/examples/web/cache/advanced.ts +++ b/examples/web/cache/advanced.ts @@ -89,8 +89,6 @@ async function setGetDeleteExample() { logger.info('cache miss'); } else if (getResponse instanceof CacheGet.Error) { logger.info(`Error: ${getResponse.message()}`); - } else { - throw new Error(`Unrecognized response: ${getResponse.toString()}`); } const deleteResponse = await momento.delete(cacheName, cacheKey);