mirror of
				https://github.com/actions/setup-java.git
				synced 2025-11-04 00:44:20 +00:00 
			
		
		
		
	Format auth
This commit is contained in:
		
							parent
							
								
									8940139ee8
								
							
						
					
					
						commit
						4b6ff8caf0
					
				@ -49,9 +49,12 @@ async function write(directory: string, settings: string) {
 | 
				
			|||||||
  try {
 | 
					  try {
 | 
				
			||||||
    return fs.writeFileSync(location, settings, options);
 | 
					    return fs.writeFileSync(location, settings, options);
 | 
				
			||||||
  } catch (e) {
 | 
					  } catch (e) {
 | 
				
			||||||
    if (e.code == "EEXIST") {
 | 
					    if (e.code == 'EEXIST') {
 | 
				
			||||||
      console.warn(`overwriting existing file ${location}`);
 | 
					      console.warn(`overwriting existing file ${location}`);
 | 
				
			||||||
      return fs.writeFileSync(location, settings, {encoding: 'utf-8', flag: 'w'});
 | 
					      return fs.writeFileSync(location, settings, {
 | 
				
			||||||
 | 
					        encoding: 'utf-8',
 | 
				
			||||||
 | 
					        flag: 'w'
 | 
				
			||||||
 | 
					      });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    throw e;
 | 
					    throw e;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user