mirror of
https://gitea.com/actions/setup-node.git
synced 2025-04-22 08:45:38 +08:00
run formatter
This commit is contained in:
parent
99d00d91fb
commit
536c162838
4
dist/setup/index.js
vendored
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user