Remove redundant logic (#13502)
Heaven committed
Sep 25, 2018 at 08:59 UTC
a775a767a1d61ef07024cbe9adc9e8f4099d9546
1 file changed
+1
-4
packages/react-reconciler/src/ReactFiberScheduler.js
+1
-4
@@ -1564,10 +1564,7 @@ function computeExpirationForFiber(currentTime: ExpirationTime, fiber: Fiber) {
1564
// This is an interactive update. Keep track of the lowest pending
1565
// interactive expiration time. This allows us to synchronously flush
1566
// all interactive updates when needed.
1567
- if (
1568
- lowestPriorityPendingInteractiveExpirationTime === NoWork ||
1569
- expirationTime > lowestPriorityPendingInteractiveExpirationTime
1570
- ) {
1567
+ if (expirationTime > lowestPriorityPendingInteractiveExpirationTime) {
1568
lowestPriorityPendingInteractiveExpirationTime = expirationTime;
1569
}
1570
}