From cabe02707aa0163174287e09510a1242c7d0c572 Mon Sep 17 00:00:00 2001 From: Evgenii Korolevskii Date: Mon, 19 Dec 2022 11:11:22 +0100 Subject: [PATCH] build --- dist/cache-save/index.js | 6 +++--- dist/setup/index.js | 6 +++--- src/cache-utils.ts | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/cache-save/index.js b/dist/cache-save/index.js index 3c98eac..1b9a1a8 100644 --- a/dist/cache-save/index.js +++ b/dist/cache-save/index.js @@ -60458,11 +60458,11 @@ const getPackageManagerInfo = (packageManager) => __awaiter(void 0, void 0, void exports.getPackageManagerInfo = getPackageManagerInfo; const getCacheDirectoryPath = (packageManagerInfo) => __awaiter(void 0, void 0, void 0, function* () { const pathList = yield Promise.all(packageManagerInfo.cacheFolderCommandList.map(command => exports.getCommandOutput(command))); - const notEmptyPaths = pathList.filter(item => item); - if (!notEmptyPaths.length) { + const cachePaths = pathList.filter(item => item); + if (!cachePaths.length) { throw new Error(`Could not get cache folder paths.`); } - return notEmptyPaths; + return cachePaths; }); exports.getCacheDirectoryPath = getCacheDirectoryPath; function isGhes() { diff --git a/dist/setup/index.js b/dist/setup/index.js index 6089775..f74f794 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -63131,11 +63131,11 @@ const getPackageManagerInfo = (packageManager) => __awaiter(void 0, void 0, void exports.getPackageManagerInfo = getPackageManagerInfo; const getCacheDirectoryPath = (packageManagerInfo) => __awaiter(void 0, void 0, void 0, function* () { const pathList = yield Promise.all(packageManagerInfo.cacheFolderCommandList.map(command => exports.getCommandOutput(command))); - const notEmptyPaths = pathList.filter(item => item); - if (!notEmptyPaths.length) { + const cachePaths = pathList.filter(item => item); + if (!cachePaths.length) { throw new Error(`Could not get cache folder paths.`); } - return notEmptyPaths; + return cachePaths; }); exports.getCacheDirectoryPath = getCacheDirectoryPath; function isGhes() { diff --git a/src/cache-utils.ts b/src/cache-utils.ts index 4394310..0557341 100644 --- a/src/cache-utils.ts +++ b/src/cache-utils.ts @@ -40,13 +40,13 @@ export const getCacheDirectoryPath = async ( ) ); - const cachePaths = pathList.filter(item => item); + const cachePaths = pathList.filter(item => item); if (!cachePaths.length) { throw new Error(`Could not get cache folder paths.`); } - return cachePaths ; + return cachePaths; }; export function isGhes(): boolean {