diff --git a/dev-infra/utils/git.ts b/dev-infra/utils/git.ts index 147f6a625a..1330ac158c 100644 --- a/dev-infra/utils/git.ts +++ b/dev-infra/utils/git.ts @@ -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([]); + private _oauthScopes: Promise|null = null; /** Regular expression that matches the provided Github token. */ private _tokenRegex = new RegExp(this._githubToken, 'g');