Skip to content

Commit

Permalink
chore: simplifying await statement
Browse files Browse the repository at this point in the history
  • Loading branch information
krpeacock committed Oct 11, 2024
1 parent 8dd643d commit 158a5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/agent/src/agent/http/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ export class HttpAgent implements Agent {
this.log.print(`ecid ${ecid.toString()}`);
this.log.print(`canisterId ${canisterId.toString()}`);
const makeQuery = async () => {
const id = await (identity !== undefined ? await identity : await this.#identity);
const id = await(identity !== undefined ? identity : this.#identity);
if (!id) {
throw new IdentityInvalidError(
"This identity has expired due this application's security policy. Please refresh your authentication.",
Expand Down

0 comments on commit 158a5cb

Please sign in to comment.