Account for cache miss
parent
403de5c1d7
commit
f6cc07750e
File diff suppressed because one or more lines are too long
|
@ -12,8 +12,15 @@ class Cache {
|
||||||
}
|
}
|
||||||
|
|
||||||
static async load() {
|
static async load() {
|
||||||
|
// Look for cache
|
||||||
const libraryFolder = await tc.find('library', this.libraryKey);
|
const libraryFolder = await tc.find('library', this.libraryKey);
|
||||||
|
|
||||||
|
// Cache miss
|
||||||
|
if (!libraryFolder) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Restore
|
||||||
await core.addPath(libraryFolder);
|
await core.addPath(libraryFolder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue