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

remove superfluous check in while loop
This commit is contained in:
Andrew Clark authored and GitHub committed 2016-12-29 13:25:22 -08:00
commit 7dc5f91d88
1 file changed
+3 -5
@@ -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);
}
};