Account for cache miss

pull/26/head
Webber 2020-01-25 16:42:41 +01:00
parent 403de5c1d7
commit f6cc07750e
2 changed files with 8 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

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