Renamed variables and added tests

This commit is contained in:
Sankalp Kotewar authored and GitHub committed 2022-12-11 13:33:36 +00:00
1 parent d91f5bd2fd
commit 3d4af52c52
16 files changed
+810 -988

No files matched your search

+1 -2
View File
@@ -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(