rename cache paths

This commit is contained in:
Evgenii Korolevskii 2022-12-19 11:09:41 +01:00 committed by GitHub
parent b6ceb1ec9f
commit c711bfc680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -40,13 +40,13 @@ export const getCacheDirectoryPath = async (
)
);
const notEmptyPaths = pathList.filter(item => item);
const cachePaths = pathList.filter(item => item);
if (!notEmptyPaths.length) {
if (!cachePaths.length) {
throw new Error(`Could not get cache folder paths.`);
}
return notEmptyPaths;
return cachePaths ;
};
export function isGhes(): boolean {