Added explicit null return to completeUnitOfWork() to resolve Flow error (#9299)

This commit is contained in:
Brian Vaughn
2017-03-30 15:45:13 -07:00
committed by GitHub
parent 224487a0e2
commit 4f69474e03
@@ -684,6 +684,10 @@ module.exports = function<T, P, I, TI, PI, C, CX, PL>(
return null;
}
}
// Without this explicit null return Flow complains of invalid return type
// TODO Remove the above while(true) loop
return null;
}
function performUnitOfWork(workInProgress: Fiber): Fiber | null {