Remove unreachable code (#13762)
Heaven committed
Oct 4, 2018 at 08:03 UTC
5c783ee75102da682519be14cd11260a04a42593
1 file changed
-11
packages/react-reconciler/src/ReactFiberScheduler.js
-11
@@ -929,23 +929,12 @@ function completeUnitOfWork(workInProgress: Fiber): Fiber | null {
929
nextRenderExpirationTime,
930
);
931
}
932
- let next = nextUnitOfWork;
932
stopWorkTimer(workInProgress);
933
resetChildExpirationTime(workInProgress, nextRenderExpirationTime);
934
if (__DEV__) {
935
ReactCurrentFiber.resetCurrentFiber();
936
}
937
939
- if (next !== null) {
940
- stopWorkTimer(workInProgress);
941
- if (__DEV__ && ReactFiberInstrumentation.debugTool) {
942
- ReactFiberInstrumentation.debugTool.onCompleteWork(workInProgress);
943
- }
944
- // If completing this work spawned new work, do that next. We'll come
945
- // back here again.
946
- return next;
947
- }
948
-
938
if (
939
returnFiber !== null &&
940
// Do not append effects to parents if a sibling failed to complete