File tree Expand file tree Collapse file tree
src/distributions/official_builds Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments