mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-18 06:39:28 +00:00
disabled linter errors.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
@@ -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}'.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user