mirror of
https://github.com/actions/cache.git
synced 2026-10-10 13:32:55 +00:00
Renamed variables and added tests
This commit is contained in:
1 parent
d91f5bd2fd
commit
3d4af52c52
16 files changed
+810
-988
No files matched your search
+1
-2
@@ -42,8 +42,7 @@ async function saveImpl(stateProvider: IStateProvider): Promise<void> {
|
||||
|
||||
// If matched restore key is same as primary key, then do not save cache
|
||||
// NO-OP in case of SaveOnly action
|
||||
const restoredKey =
|
||||
stateProvider.getCacheState() || core.getInput(Inputs.RestoredKey);
|
||||
const restoredKey = stateProvider.getCacheState();
|
||||
|
||||
if (utils.isExactKeyMatch(primaryKey, restoredKey)) {
|
||||
core.info(
|
||||
|
||||
Reference in new issue
Block a user