mirror of
https://github.com/actions/cache.git
synced 2025-07-13 20:11:48 +02:00
Fixed test cases
This commit is contained in:
7
dist/save/index.js
vendored
7
dist/save/index.js
vendored
@ -9413,9 +9413,14 @@ class NullStateProvider extends StateProviderBase {
|
||||
[constants_1.State.CachePrimaryKey, constants_1.Outputs.CachePrimaryKey]
|
||||
]);
|
||||
this.setState = (key, value) => {
|
||||
core.setOutput(this.stateToOutputMap.get(key), value);
|
||||
if (this.stateToOutputMap.has(key)) {
|
||||
core.setOutput(this.stateToOutputMap.get(key), value);
|
||||
}
|
||||
};
|
||||
this.getState = (key) => {
|
||||
if (!this.stateToInputMap.has(key)) {
|
||||
return "";
|
||||
}
|
||||
return core.getInput(this.stateToInputMap.get(key));
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user