Remove LGTM (#16948)

This commit is contained in:
Charles Gagnon
2021-08-31 12:44:59 -07:00
committed by GitHub
parent 2a47e7c09e
commit a96bf181c0
2 changed files with 1 additions and 34 deletions

View File

@@ -57,7 +57,7 @@ export class AzCliTool extends ToolBase {
protected getVersionFromOutput(output: string): SemVer | undefined {
if (output && output.includes('azure-cli')) {
return new SemVer(output.split(EOL)[0].replace('azure-cli', '').replace(/ /g, '').replace('*', '')); //lgtm [js/incomplete-sanitization]
return new SemVer(output.split(EOL)[0].replace('azure-cli', '').replace(/ /g, '').replace('*', ''));
} else {
return undefined;
}