From 292b71d345691eca3f447ec586f1dfd981a67a59 Mon Sep 17 00:00:00 2001 From: Evgenii Korolevskii Date: Fri, 20 Jan 2023 09:33:53 +0100 Subject: [PATCH] format & build --- dist/setup/index.js | 4 ++-- src/cache-distributions/pip-cache.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 61712724..c788fd64 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -65944,8 +65944,8 @@ class PipCache extends cache_distributor_1.default { } computeKeys() { return __awaiter(this, void 0, void 0, function* () { - const hash = (yield glob.hashFiles(this.cacheDependencyPath)) - || (yield glob.hashFiles(this.cacheDependencyBackupPath)); + const hash = (yield glob.hashFiles(this.cacheDependencyPath)) || + (yield glob.hashFiles(this.cacheDependencyBackupPath)); let primaryKey = ''; let restoreKey = ''; if (utils_1.IS_LINUX) { diff --git a/src/cache-distributions/pip-cache.ts b/src/cache-distributions/pip-cache.ts index b48c1075..554d18d7 100644 --- a/src/cache-distributions/pip-cache.ts +++ b/src/cache-distributions/pip-cache.ts @@ -10,7 +10,6 @@ import CacheDistributor from './cache-distributor'; import {getLinuxInfo, IS_LINUX, IS_WINDOWS} from '../utils'; class PipCache extends CacheDistributor { - private readonly cacheDependencyBackupPath: string = '**/pyproject.toml'; constructor( @@ -59,8 +58,9 @@ class PipCache extends CacheDistributor { } protected async computeKeys() { - const hash = await glob.hashFiles(this.cacheDependencyPath) - || await glob.hashFiles(this.cacheDependencyBackupPath); + const hash = + (await glob.hashFiles(this.cacheDependencyPath)) || + (await glob.hashFiles(this.cacheDependencyBackupPath)); let primaryKey = ''; let restoreKey = '';