mirror of
				https://github.com/actions/cache.git
				synced 2025-10-23 08:56:26 +08:00 
			
		
		
		
	Renamed variables and added tests
This commit is contained in:
		| @@ -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