Handle no github auth config

This commit is contained in:
Rachel Macfarlane 2020-02-20 14:37:03 -08:00
parent 2e66ecb804
commit 167c422e4b

View file

@ -17,7 +17,14 @@ export class Registrar {
private _config: ClientConfig;
constructor() {
try {
this._config = require('./config.json') as ClientConfig;
} catch (e) {
this._config = {
OSS: {},
INSIDERS: {}
};
}
}
getClientDetails(product: string): ClientDetails {
let details: ClientDetails | undefined;