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
This commit is contained in:
Carlos Guerrero 2020-02-25 19:16:36 +00:00 committed by GitHub
parent e8230b28a9
commit 8e9c167fd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -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}`
);
});

View file

@ -61,9 +61,7 @@ async function run(): Promise<void> {
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;
}