Skip to content

Commit

Permalink
fix: remove unecessary awaits (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias authored Jan 17, 2023
1 parent b773376 commit 64da6e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/access-client/src/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
}
Expand All @@ -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,
})
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 64da6e5

Please sign in to comment.