Skip to content

Commit

Permalink
chore: remove duplicate warning about cache miss
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Sep 26, 2021
1 parent 35e7b01 commit bcbca9a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
4 changes: 0 additions & 4 deletions dist/restore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5271,10 +5271,6 @@ function restoreCache(paths, primaryKey, restoreKeys) {
// console.log(JSON.stringify({ patterns, cacheFiles }, null, 2));
const result = locateCacheFile(filenameMatchers, cacheFiles);
if (!result) {
core.warning(`Unable to locate fitting cache file:\n${JSON.stringify({
patterns,
cacheFiles
}, null, 2)}`);
return undefined;
}
const { key, cacheFile } = result;
Expand Down
4 changes: 0 additions & 4 deletions dist/save/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5361,10 +5361,6 @@ function restoreCache(paths, primaryKey, restoreKeys) {
// console.log(JSON.stringify({ patterns, cacheFiles }, null, 2));
const result = locateCacheFile(filenameMatchers, cacheFiles);
if (!result) {
core.warning(`Unable to locate fitting cache file:\n${JSON.stringify({
patterns,
cacheFiles
}, null, 2)}`);
return undefined;
}
const { key, cacheFile } = result;
Expand Down
10 changes: 0 additions & 10 deletions src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,6 @@ export async function restoreCache(
const result = locateCacheFile(filenameMatchers, cacheFiles);

if (!result) {
core.warning(
`Unable to locate fitting cache file:\n${JSON.stringify(
{
patterns,
cacheFiles
},
null,
2
)}`
);
return undefined;
}

Expand Down

0 comments on commit bcbca9a

Please sign in to comment.