Skip to content

Commit 2aa2c31

Browse files
committed
Only use mirrorToken in getManifest if it's provided
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
1 parent 0355742 commit 2aa2c31

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/distributions/official_builds/official_builds.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ export default class OfficialBuilds extends BaseDistribution {
8484
downloadPath = await tc.downloadTool(
8585
versionInfo.downloadUrl,
8686
undefined,
87-
this.nodeInfo.mirror ? this.nodeInfo.mirrorToken : this.nodeInfo.auth
87+
this.nodeInfo.mirror && this.nodeInfo.mirrorToken
88+
? this.nodeInfo.mirrorToken
89+
: this.nodeInfo.auth
8890
);
8991

9092
if (downloadPath) {
@@ -188,7 +190,9 @@ export default class OfficialBuilds extends BaseDistribution {
188190
return tc.getManifestFromRepo(
189191
'actions',
190192
'node-versions',
191-
this.nodeInfo.mirror ? this.nodeInfo.mirrorToken : this.nodeInfo.auth,
193+
this.nodeInfo.mirror && this.nodeInfo.mirrorToken
194+
? this.nodeInfo.mirrorToken
195+
: this.nodeInfo.auth,
192196
'main'
193197
);
194198
}

0 commit comments

Comments
 (0)