fix(dev-infra): properly determine oauth scopes for git client token (#37462)

Resubmit of b2bd38699b since
85b6c94cc6 accidentally reverted
the fix due to rebasing most likely.

PR Close #37462
This commit is contained in:
Paul Gschwendtner 2020-06-04 18:55:52 +02:00 committed by atscott
parent 2a330a60ed
commit 17996bf719
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ export class GitClient {
/** The file path of project's root directory. */
private _projectRoot = getRepoBaseDir();
/** The OAuth scopes available for the provided Github token. */
private _oauthScopes = Promise.resolve<string[]>([]);
private _oauthScopes: Promise<string[]>|null = null;
/** Regular expression that matches the provided Github token. */
private _tokenRegex = new RegExp(this._githubToken, 'g');