From b8c50aa82d788116e1daf54f636f12d1c5f142af Mon Sep 17 00:00:00 2001 From: Sampark Sharma Date: Fri, 16 Dec 2022 05:55:53 +0000 Subject: [PATCH] Fix response code --- packages/cache/src/internal/cacheHttpClient.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/cache/src/internal/cacheHttpClient.ts b/packages/cache/src/internal/cacheHttpClient.ts index 532a09d6..14a25803 100644 --- a/packages/cache/src/internal/cacheHttpClient.ts +++ b/packages/cache/src/internal/cacheHttpClient.ts @@ -136,8 +136,7 @@ async function listCache( const response = await retryTypedResponse('listCache', async () => httpClient.getJson(getCacheApiUrl(resource)) ) - core.debug(`List Cache Response Status Code: ${response.statusCode}`) - if (response.statusCode !== 200) { + if (response.statusCode === 200) { const cacheListResult = response.result const totalCount = cacheListResult?.totalCount if (totalCount && totalCount > 0) {