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

@ -10,14 +10,6 @@ export default class RcBuild extends BaseDistribution {
super(nodeInfo);
}
protected 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 evaluateVersions(versions: string[]): string {
let version = '';