3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-24 11:09:33 +01:00
This commit is contained in:
Danny McCormick 2019-08-05 13:15:47 -04:00
parent 920661f1be
commit a9f1343a9a

View file

@ -11,7 +11,7 @@ export function configAuthentication(registryUrl: string) {
function writeRegistryToFile(registryUrl: string, fileLocation: string) {
core.debug(`Setting auth in ${fileLocation}`);
let newContents = '';
let newContents: string = '';
if (fs.existsSync(fileLocation)) {
const curContents: string = fs.readFileSync(fileLocation, 'utf8');
curContents.split(os.EOL).forEach((line: string) => {