mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-10-07 02:24:46 +01:00
Explorer.ts Cleanup (#341)
Co-authored-by: victor-meng <[email protected]>
This commit is contained in:
co-authored by
victor-meng
parent
f54e8eb692
commit
dfb1b50621
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user