Merge pull request #8641 from jddxf/remove-superfluous-check

remove superfluous check in while loop
This commit is contained in:
Andrew Clark
2016-12-29 13:25:22 -08:00
committed by GitHub
@@ -164,11 +164,9 @@ var flushBatchedUpdates = function() {
// componentDidUpdate) but we need to check here too in order to catch
// updates enqueued by setState callbacks.
while (dirtyComponents.length) {
if (dirtyComponents.length) {
var transaction = ReactUpdatesFlushTransaction.getPooled();
transaction.perform(runBatchedUpdates, null, transaction);
ReactUpdatesFlushTransaction.release(transaction);
}
var transaction = ReactUpdatesFlushTransaction.getPooled();
transaction.perform(runBatchedUpdates, null, transaction);
ReactUpdatesFlushTransaction.release(transaction);
}
};