Skip to content

Commit

Permalink
Remove needless function wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Oct 10, 2024
1 parent d5c51a6 commit 2516cd4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/interactivity/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ export const splitTask =
null !== window.scheduler &&
'yield' in window.scheduler &&
typeof window.scheduler.yield === 'function'
? () => {
return window.scheduler.yield();
}
? window.scheduler.yield
: () => {
return new Promise( async ( resolve ) => {
setTimeout( resolve, 0 );
Expand Down

0 comments on commit 2516cd4

Please sign in to comment.