Explorer.ts Cleanup (#341)

Co-authored-by: victor-meng <56978073+victor-meng@users.noreply.github.com>
This commit is contained in:
Steve Faulkner
2020-12-16 20:00:39 -06:00
committed by GitHub
parent f54e8eb692
commit dfb1b50621
16 changed files with 121 additions and 224 deletions

View File

@@ -268,7 +268,7 @@ export default class Main {
masterKey?: string /* master key extracted from connection string if available */,
account?: DatabaseAccount,
authorizationToken?: string /* access key */
): Q.Promise<void> {
): void {
const serverId: string = AuthHeadersUtil.serverId;
const authType: string = (<any>window).authType;
const accountResourceId =
@@ -373,7 +373,7 @@ export default class Main {
});
}
return Q.reject(`Unsupported AuthType ${authType}`);
throw new Error(`Unsupported AuthType ${authType}`);
}
private static _instantiateExplorer(): Explorer {