mirror of
https://github.com/actions/setup-node.git
synced 2025-12-17 02:31:38 +08:00
optimize code
This commit is contained in:
@@ -70,14 +70,6 @@ export default class CanaryBuild extends BaseDistribution {
|
||||
return version;
|
||||
}
|
||||
|
||||
async getNodejsVersions(): Promise<INodeVersion[]> {
|
||||
const initialUrl = this.getDistributionUrl();
|
||||
const dataUrl = `${initialUrl}/index.json`;
|
||||
|
||||
let response = await this.httpClient.getJson<INodeVersion[]>(dataUrl);
|
||||
return response.result || [];
|
||||
}
|
||||
|
||||
protected createRangePreRelease(
|
||||
versionSpec: string,
|
||||
distribution: string = ''
|
||||
|
||||
Reference in New Issue
Block a user