Skip to content

Commit

Permalink
Make conventional eslint styles
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximoLiberata authored Apr 10, 2024
1 parent 5d681ba commit 2fa569b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/lib/get-timer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ const getTimer = (variant: TimerVariant): Timer => {
}
case 'auto':
default: {

return isBrowser && !isWebWorker && !isReactNativeBrowser ? workerTimer : nativeTimer

return isBrowser && !isWebWorker && !isReactNativeBrowser
? workerTimer
: nativeTimer
}
}
}
Expand Down
11 changes: 6 additions & 5 deletions src/lib/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ export function applyMixin(
}
}
}
export const nextTick = typeof process?.nextTick === 'function'
? process.nextTick
: (callback: () => void) => {
setTimeout(callback, 0)
}
export const nextTick =
typeof process?.nextTick === 'function'
? process.nextTick
: (callback: () => void) => {
setTimeout(callback, 0)
}

0 comments on commit 2fa569b

Please sign in to comment.