upload with programmer when it's explicitly asked

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta
2020-07-22 13:16:43 +02:00
parent 491e0cb6d0
commit f4097b5b24
5 changed files with 23 additions and 16 deletions

View File

@@ -287,15 +287,6 @@ export namespace Programmer {
return left.id === right.id && left.name === right.name && left.platform === right.platform;
}
export function toString({ id, platform }: Programmer): string {
// tslint:disable-next-line: whitespace
const [vendor,] = platform.split(':');
if (!vendor) {
throw new Error(`Could not extract vendor from platform: '${platform}'.`);
}
return `${vendor}:${id}`;
}
}
export namespace Board {