1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-node synced 2025-06-22 19:28:01 +02:00

Clean up changes

This commit is contained in:
Danny McCormick 2019-06-04 16:06:21 -04:00
parent 48c62836f2
commit d0b97fb997
3 changed files with 12 additions and 36 deletions

View file

@ -147,8 +147,6 @@ async function acquireNode(version: string): Promise<string> {
} catch (err) {
if (err['httpStatusCode'] && err['httpStatusCode'] === '404') {
return await acquireNodeFromFallbackLocation(version);
} else {
console.log('Message', err.message.statusCode);
}
throw err;
@ -159,6 +157,7 @@ async function acquireNode(version: string): Promise<string> {
//
let extPath: string;
if (osPlat == 'win32') {
let _7zPath = path.join(__dirname, '7zr.exe');
extPath = await tc.extract7z(downloadPath);
} else {
extPath = await tc.extractTar(downloadPath);