mirror of
https://github.com/actions/setup-go.git
synced 2025-07-15 19:45:16 -06:00
Do not throw exception in all cases
This commit is contained in:
parent
b179378e1e
commit
db0ba7321f
2 changed files with 13 additions and 6 deletions
|
@ -87,7 +87,7 @@ export async function isCacheEnabled() {
|
|||
|
||||
const packageManager = getCurrentPackageManager();
|
||||
const packageManagerInfo = await getPackageManagerInfo(packageManager);
|
||||
const cachePaths = findDependencyFile(packageManagerInfo);
|
||||
const cachePaths = findDependencyFile(packageManagerInfo, false);
|
||||
|
||||
return cachePaths.length > 0;
|
||||
return Boolean(cachePaths);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue