optimize code

This commit is contained in:
Dmitry Shibanov 2022-12-14 19:08:19 +01:00
parent 15798eaae7
commit 785620d55b
6 changed files with 16 additions and 92 deletions

View file

@ -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 = ''