mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 01:23:34 +00:00 
			
		
		
		
	Format code
This commit is contained in:
		
							parent
							
								
									e22d92112e
								
							
						
					
					
						commit
						72615645bb
					
				
							
								
								
									
										2
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							@ -71776,7 +71776,7 @@ function parseNodeVersionFile(contents) {
 | 
			
		||||
        nodeVersion = (_a = JSON.parse(contents).engines) === null || _a === void 0 ? void 0 : _a.node;
 | 
			
		||||
    }
 | 
			
		||||
    catch (_c) {
 | 
			
		||||
        core.warning("Node version file is not JSON file");
 | 
			
		||||
        core.warning('Node version file is not JSON file');
 | 
			
		||||
    }
 | 
			
		||||
    if (!nodeVersion) {
 | 
			
		||||
        try {
 | 
			
		||||
 | 
			
		||||
@ -502,7 +502,7 @@ export function parseNodeVersionFile(contents: string): string {
 | 
			
		||||
  try {
 | 
			
		||||
    nodeVersion = JSON.parse(contents).engines?.node;
 | 
			
		||||
  } catch {
 | 
			
		||||
    core.warning("Node version file is not JSON file")
 | 
			
		||||
    core.warning('Node version file is not JSON file');
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (!nodeVersion) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user