mirror of
https://github.com/actions/setup-go.git
synced 2025-06-29 00:13:44 +00:00
Change code according to review points
This commit is contained in:
parent
86d1cd689b
commit
8d80cd6b60
5 changed files with 18 additions and 16 deletions
|
@ -21,14 +21,13 @@ export async function run() {
|
|||
}
|
||||
|
||||
const cachePackages = async () => {
|
||||
|
||||
const cacheInput = core.getInput('cache');
|
||||
if (!cacheInput) {
|
||||
const cache = core.getInput('cache');
|
||||
if (!cache) {
|
||||
return;
|
||||
}
|
||||
|
||||
const packageManager = cacheInput.toUpperCase() === 'TRUE' ? 'default' : cacheInput;
|
||||
|
||||
const packageManager = cache.toUpperCase() === 'TRUE' ? 'default' : cache;
|
||||
|
||||
const state = core.getState(State.CacheMatchedKey);
|
||||
const primaryKey = core.getState(State.CachePrimaryKey);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue