remove superfluous check in while loop
jddxf committed
Dec 25, 2016 at 09:41 UTC
b359be74a1102b7220235b41821a410cd6f3b7a0
1 file changed
+3
-5
src/renderers/shared/stack/reconciler/ReactUpdates.js
+3
-5
@@ -164,11 +164,9 @@ var flushBatchedUpdates = function() {
164
// componentDidUpdate) but we need to check here too in order to catch
165
// updates enqueued by setState callbacks.
166
while (dirtyComponents.length) {
167
- if (dirtyComponents.length) {
168
- var transaction = ReactUpdatesFlushTransaction.getPooled();
169
- transaction.perform(runBatchedUpdates, null, transaction);
170
- ReactUpdatesFlushTransaction.release(transaction);
171
- }
167
+ var transaction = ReactUpdatesFlushTransaction.getPooled();
168
+ transaction.perform(runBatchedUpdates, null, transaction);
169
+ ReactUpdatesFlushTransaction.release(transaction);
170
}
171
};
172