disabled linter errors.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2020-07-22 11:54:20 +02:00
parent e1f74d94a7
commit e95f00466f
2 changed files with 3 additions and 1 deletions

View File

@ -353,6 +353,7 @@ export function compareByPrefix(one: string, other: string, lookFor: string): nu
}
// Same prefix: Sort shorter matches to the top to have those on top that match more precisely
// tslint:disable-next-line: one-line
else if (elementAPrefixMatch && elementBPrefixMatch) {
if (elementAName.length < elementBName.length) {
return -1;

View File

@ -288,7 +288,8 @@ export namespace Programmer {
}
export function toString({ id, platform }: Programmer): string {
const [vendor,] = platform.split('@');
// tslint:disable-next-line: whitespace
const [vendor,] = platform.split(':');
if (!vendor) {
throw new Error(`Could not extract vendor from platform: '${platform}'.`);
}