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

View file

@ -40,7 +40,7 @@ const cachePackages = async () => {
);
if (nonExistingPaths.length === cachePaths.length) {
throw new Error(`No cache folders exist on disk`);
throw new Error(`There are no cache folders on the disk`);
}
if (nonExistingPaths.length) {

View file

@ -1,7 +1,6 @@
import * as cache from '@actions/cache';
import * as core from '@actions/core';
import * as exec from '@actions/exec';
import path from 'path';
import {supportedPackageManagers, PackageManagerInfo} from './package-managers';
export const getCommandOutput = async (toolCommand: string) => {
@ -36,7 +35,7 @@ export const getCacheDirectoryPath = async (
packageManagerInfo: PackageManagerInfo
) => {
let pathList = await Promise.all(
packageManagerInfo.cacheFolderCommandList.map(async command =>
packageManagerInfo.cacheFolderCommandList.map(command =>
getCommandOutput(command)
)
);