Skip to content

Commit

Permalink
refactor(vow): tiny minor refactor asVow implementation (#9698)
Browse files Browse the repository at this point in the history
closes: #XXXX
refs: #XXXX

## Description

Tiny minor refactor that destructures in place to remove a named variable.

Completely non-urgent and non-important. But tiny improvements add up.

### Security Considerations
none
### Scaling Considerations
none
### Documentation Considerations
none
### Testing Considerations
none
### Upgrade Considerations
none
  • Loading branch information
erights authored Jul 12, 2024
1 parent 17608dc commit 3f2cb5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vow/src/vow-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ export const makeAsVow = makeVowKit => {
if (isVow(result)) {
return result;
}
const kit = makeVowKit();
kit.resolver.resolve(result);
return kit.vow;
const { vow, resolver } = makeVowKit();
resolver.resolve(result);
return vow;
};
return harden(asVow);
};
Expand Down

0 comments on commit 3f2cb5c

Please sign in to comment.