Skip to content

Commit 860f66a

Browse files
committed
Remove redundant log messages for caching asdf-vm#235
1 parent 39e661c commit 860f66a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

install/main.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66944,9 +66944,7 @@ async function restoreAsdfCache() {
6694466944
];
6694566945
core3.debug(`Restoring ${paths.join(", ")} from cache with key "${cacheKey}" using restore keys "${restoreKeys.join(", ")}"`);
6694666946
const foundCacheKey = await cache.restoreCache(paths, cacheKey, restoreKeys);
66947-
if (foundCacheKey) {
66948-
core3.info(`Cache restored with key "${foundCacheKey}"`);
66949-
} else {
66947+
if (!foundCacheKey) {
6695066948
core3.info(`No cache found with key "${cacheKey}, "${restoreKeys.join(", ")}"`);
6695166949
}
6695266950
return foundCacheKey;

src/caching/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ export async function restoreAsdfCache() {
4646

4747
core.debug(`Restoring ${paths.join(', ')} from cache with key "${cacheKey}" using restore keys "${restoreKeys.join(', ')}"`);
4848
const foundCacheKey = await cache.restoreCache(paths, cacheKey, restoreKeys);
49-
if (foundCacheKey) {
50-
core.info(`Cache restored with key "${foundCacheKey}"`);
51-
} else {
49+
if (!foundCacheKey) {
5250
core.info(`No cache found with key "${cacheKey}, "${restoreKeys.join(', ')}"`);
5351
}
5452

0 commit comments

Comments
 (0)