Skip to content

Commit

Permalink
Small message change (#195)
Browse files Browse the repository at this point in the history
* Small message change

Remove dot that generates confusion in wether that's part of the key or not

* Fix format-check

* Update tests
  • Loading branch information
Carlos Guerrero authored and GitHub committed Feb 25, 2020
1 parent e8230b2 commit 8e9c167
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions __tests__/restore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
);
});

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

Expand Down
4 changes: 1 addition & 3 deletions src/restore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8e9c167

Please sign in to comment.