fix parameters parsing, format

This commit is contained in:
Artur Stolear
2020-03-13 14:53:35 +02:00
parent e80e47e735
commit 7f9dcba752
44 changed files with 135 additions and 133 deletions

View File

@@ -3,9 +3,9 @@ import * as os from 'os'
import * as path from 'path'
import * as http from 'typed-rest-client/HttpClient'
import {inject, injectable} from 'inversify'
import {TYPES, IExecResult, IBuildAgent} from './models'
import {IVersionManager} from './versionManager'
import { inject, injectable } from 'inversify'
import { TYPES, IExecResult, IBuildAgent } from './models'
import { IVersionManager } from './versionManager'
export interface IDotnetTool {
disableTelemetry(): void
@@ -145,7 +145,7 @@ export class DotnetTool implements IDotnetTool {
const body: string = await res.readBody()
const data = JSON.parse(body).data
const versions = (data[0].versions as {version: string}[]).map(
const versions = (data[0].versions as { version: string }[]).map(
x => x.version
)
if (!versions || !versions.length) {