mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-06-06 20:26:34 +00:00
disabled linter errors.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
e1f74d94a7
commit
e95f00466f
@ -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
|
// 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) {
|
else if (elementAPrefixMatch && elementBPrefixMatch) {
|
||||||
if (elementAName.length < elementBName.length) {
|
if (elementAName.length < elementBName.length) {
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -288,7 +288,8 @@ export namespace Programmer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function toString({ id, platform }: Programmer): string {
|
export function toString({ id, platform }: Programmer): string {
|
||||||
const [vendor,] = platform.split('@');
|
// tslint:disable-next-line: whitespace
|
||||||
|
const [vendor,] = platform.split(':');
|
||||||
if (!vendor) {
|
if (!vendor) {
|
||||||
throw new Error(`Could not extract vendor from platform: '${platform}'.`);
|
throw new Error(`Could not extract vendor from platform: '${platform}'.`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user