1
0
mirror of https://gitea.com/actions/setup-node.git synced 2025-05-13 03:06:51 +08:00

run formatter

This commit is contained in:
Dmitry Shibanov 2023-04-06 14:28:25 +02:00
parent 99d00d91fb
commit 536c162838
2 changed files with 8 additions and 2 deletions
dist/setup
src/distributions

4
dist/setup/index.js vendored

@ -73441,7 +73441,9 @@ class BaseDistribution {
downloadPath = yield tc.downloadTool(info.downloadUrl); downloadPath = yield tc.downloadTool(info.downloadUrl);
} }
catch (err) { catch (err) {
if (err instanceof tc.HTTPError && err.httpStatusCode == 404 && this.osPlat == 'win32') { if (err instanceof tc.HTTPError &&
err.httpStatusCode == 404 &&
this.osPlat == 'win32') {
return yield this.acquireWindowsNodeFromFallbackLocation(info.resolvedVersion, info.arch); return yield this.acquireWindowsNodeFromFallbackLocation(info.resolvedVersion, info.arch);
} }
throw err; throw err;

@ -127,7 +127,11 @@ export default abstract class BaseDistribution {
try { try {
downloadPath = await tc.downloadTool(info.downloadUrl); downloadPath = await tc.downloadTool(info.downloadUrl);
} catch (err) { } catch (err) {
if (err instanceof tc.HTTPError && err.httpStatusCode == 404 && this.osPlat == 'win32') { if (
err instanceof tc.HTTPError &&
err.httpStatusCode == 404 &&
this.osPlat == 'win32'
) {
return await this.acquireWindowsNodeFromFallbackLocation( return await this.acquireWindowsNodeFromFallbackLocation(
info.resolvedVersion, info.resolvedVersion,
info.arch info.arch