Skip to content

Commit cb32a51

Browse files
author
David Liu
authored
Update identity.js
usually a new object will not return as a wrapped promise, but a raw object, so no need to put `await` overhead
1 parent 417c4a2 commit cb32a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/javascript/identity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const tenancyId = {
1313
};
1414

1515
(async () => {
16-
const identityClient = await new identity.IdentityClient({
16+
const identityClient = new identity.IdentityClient({
1717
authenticationDetailsProvider: provider
1818
});
1919
const regions = await identityClient.listRegionSubscriptions(tenancyId);

0 commit comments

Comments
 (0)