Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
satoren authored and dai-shi committed Nov 5, 2023
1 parent 8350b1a commit 6e100bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vanilla/utils/unwrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ export function unwrap<Value, Args extends unknown[], Result, PendingValue>(
return atom(
(get) => {
const state = get(promiseAndValueAtom)
if ('f' in state) { // is pending
if ('f' in state) {
// is pending
return state.f
}
return state.v
Expand Down

1 comment on commit 6e100bc

@vercel
Copy link

@vercel vercel bot commented on 6e100bc Nov 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.