Fix review points

README.md file was updated, removed async declaration in cache-utils
file and changed the error message in cache-save file.
This commit is contained in:
Ivan Zosimov 2022-04-27 10:56:45 +02:00
parent a4ab0b1477
commit 2d848c0e6a
5 changed files with 6 additions and 7 deletions

2
dist/setup/index.js vendored
View file

@ -4307,7 +4307,7 @@ exports.getPackageManagerInfo = (packageManager) => __awaiter(void 0, void 0, vo
return obtainedPackageManager;
});
exports.getCacheDirectoryPath = (packageManagerInfo) => __awaiter(void 0, void 0, void 0, function* () {
let pathList = yield Promise.all(packageManagerInfo.cacheFolderCommandList.map((command) => __awaiter(void 0, void 0, void 0, function* () { return exports.getCommandOutput(command); })));
let pathList = yield Promise.all(packageManagerInfo.cacheFolderCommandList.map(command => exports.getCommandOutput(command)));
const emptyPaths = pathList.filter(item => !item);
if (emptyPaths.length) {
throw new Error(`Could not get cache folder paths.`);