mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 01:11:00 +00:00
run formatter
This commit is contained in:
parent
99d00d91fb
commit
536c162838
2 changed files with 8 additions and 2 deletions
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -73441,7 +73441,9 @@ class BaseDistribution {
|
|||
downloadPath = yield tc.downloadTool(info.downloadUrl);
|
||||
}
|
||||
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);
|
||||
}
|
||||
throw err;
|
||||
|
|
|
@ -127,7 +127,11 @@ export default abstract class BaseDistribution {
|
|||
try {
|
||||
downloadPath = await tc.downloadTool(info.downloadUrl);
|
||||
} 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(
|
||||
info.resolvedVersion,
|
||||
info.arch
|
||||
|
|
Loading…
Add table
Reference in a new issue