From 64da6e50c4d0d0ef3b78c00298769665463e421d Mon Sep 17 00:00:00 2001 From: Hugo Dias Date: Tue, 17 Jan 2023 18:25:06 +0000 Subject: [PATCH] fix: remove unecessary awaits (#352) --- packages/access-client/src/agent.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/access-client/src/agent.js b/packages/access-client/src/agent.js index a80128b15..e6e939ca9 100644 --- a/packages/access-client/src/agent.js +++ b/packages/access-client/src/agent.js @@ -519,7 +519,7 @@ export class Agent { * @param {import('./types').DelegationOptions} options */ async delegate(options) { - const space = await this.currentSpaceWithMeta() + const space = this.currentSpaceWithMeta() if (!space) { throw new Error('there no space selected.') } @@ -536,7 +536,7 @@ export class Agent { const delegation = await delegate({ issuer: this.issuer, capabilities: caps, - proofs: await this.proofs(caps), + proofs: this.proofs(caps), facts: [{ space: space.meta }], ...options, }) @@ -640,7 +640,7 @@ export class Agent { throw new Error('No space selected, you need pass a resource.') } - const proofs = await this.proofs([ + const proofs = this.proofs([ { with: space, can: cap.can,