From 8e9c167fd7a536f5774089f17b919c7ac914af9a Mon Sep 17 00:00:00 2001 From: Carlos Guerrero Date: Tue, 25 Feb 2020 19:16:36 +0000 Subject: [PATCH] Small message change (#195) * Small message change Remove dot that generates confusion in wether that's part of the key or not * Fix format-check * Update tests --- __tests__/restore.test.ts | 4 ++-- src/restore.ts | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/__tests__/restore.test.ts b/__tests__/restore.test.ts index c96a2d6..05fed55 100644 --- a/__tests__/restore.test.ts +++ b/__tests__/restore.test.ts @@ -136,7 +136,7 @@ test("restore with no cache found", async () => { expect(failedMock).toHaveBeenCalledTimes(0); expect(infoMock).toHaveBeenCalledWith( - `Cache not found for input keys: ${key}.` + `Cache not found for input keys: ${key}` ); }); @@ -195,7 +195,7 @@ test("restore with restore keys and no cache found", async () => { expect(failedMock).toHaveBeenCalledTimes(0); expect(infoMock).toHaveBeenCalledWith( - `Cache not found for input keys: ${key}, ${restoreKey}.` + `Cache not found for input keys: ${key}, ${restoreKey}` ); }); diff --git a/src/restore.ts b/src/restore.ts index 4911e7e..f180c2b 100644 --- a/src/restore.ts +++ b/src/restore.ts @@ -61,9 +61,7 @@ async function run(): Promise { try { const cacheEntry = await cacheHttpClient.getCacheEntry(keys); if (!cacheEntry?.archiveLocation) { - core.info( - `Cache not found for input keys: ${keys.join(", ")}.` - ); + core.info(`Cache not found for input keys: ${keys.join(", ")}`); return; }