Skip to content

Commit

Permalink
🐜 we no longer need the default case
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Nov 20, 2023
1 parent 0e9fbcf commit 86f4794
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/isTimeToYield.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,5 @@ function calculateDeadline(priority: SchedulingPriority): number {
: Date.now() + state.idleDeadline.timeRemaining()
return Math.min(state.workStartTimeThisFrame + 5, idleDeadline)
}
// istanbul ignore next
default:
throw new Error('Unreachable code')
}
}

0 comments on commit 86f4794

Please sign in to comment.