mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 07:38:37 +08:00 
			
		
		
		
	Removed return type in promise
This commit is contained in:
		
							parent
							
								
									85ae5bbcea
								
							
						
					
					
						commit
						e02e5113ed
					
				| 
						 | 
					@ -5,7 +5,7 @@ import { Events, Inputs, Outputs, State } from "./constants";
 | 
				
			||||||
import { IOutputSetter } from "./outputSetter";
 | 
					import { IOutputSetter } from "./outputSetter";
 | 
				
			||||||
import * as utils from "./utils/actionUtils";
 | 
					import * as utils from "./utils/actionUtils";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
async function run(outputter: IOutputSetter): Promise<string | undefined> {
 | 
					async function run(outputter: IOutputSetter): Promise<void> {
 | 
				
			||||||
    try {
 | 
					    try {
 | 
				
			||||||
        if (!utils.isCacheFeatureAvailable()) {
 | 
					        if (!utils.isCacheFeatureAvailable()) {
 | 
				
			||||||
            utils.setCacheHitOutput(false);
 | 
					            utils.setCacheHitOutput(false);
 | 
				
			||||||
| 
						 | 
					@ -59,7 +59,7 @@ async function run(outputter: IOutputSetter): Promise<string | undefined> {
 | 
				
			||||||
        outputter.setOutput(Outputs.CacheHit, isExactKeyMatch.toString());
 | 
					        outputter.setOutput(Outputs.CacheHit, isExactKeyMatch.toString());
 | 
				
			||||||
        core.info(`Cache restored from key: ${cacheKey}`);
 | 
					        core.info(`Cache restored from key: ${cacheKey}`);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return cacheKey;
 | 
					        return;
 | 
				
			||||||
    } catch (error: unknown) {
 | 
					    } catch (error: unknown) {
 | 
				
			||||||
        core.setFailed((error as Error).message);
 | 
					        core.setFailed((error as Error).message);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user