mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 01:37:20 +00:00
Handle no github auth config
This commit is contained in:
parent
2e66ecb804
commit
167c422e4b
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue