diff --git a/src/vanilla/utils/unwrap.ts b/src/vanilla/utils/unwrap.ts index 8166b0b452..2504f68d51 100644 --- a/src/vanilla/utils/unwrap.ts +++ b/src/vanilla/utils/unwrap.ts @@ -60,17 +60,16 @@ export function unwrap( return { v: promise as Awaited } } if (promise !== prev?.p) { - promise - .then( - (v) => { - promiseResultCache.set(promise, v as Awaited) - setSelf() - }, - (e) => { - promiseErrorCache.set(promise, e) - setSelf() - } - ) + promise.then( + (v) => { + promiseResultCache.set(promise, v as Awaited) + setSelf() + }, + (e) => { + promiseErrorCache.set(promise, e) + setSelf() + }, + ) } if (promiseErrorCache.has(promise)) { throw promiseErrorCache.get(promise)