mirror of
https://github.com/actions/setup-node
synced 2025-04-17 13:43:12 +00: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);
|
||||
}
|
||||
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…
Reference in New Issue
Block a user