From 3f2cb5ca05d2514ceef73764618536263ef7a835 Mon Sep 17 00:00:00 2001 From: "Mark S. Miller" Date: Fri, 12 Jul 2024 12:04:36 -0700 Subject: [PATCH] refactor(vow): tiny minor refactor asVow implementation (#9698) 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 --- packages/vow/src/vow-utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/vow/src/vow-utils.js b/packages/vow/src/vow-utils.js index feb2cd0e815..e18465ce367 100644 --- a/packages/vow/src/vow-utils.js +++ b/packages/vow/src/vow-utils.js @@ -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); };