mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Reverse condition of a ternary for readability
This commit is contained in:
@@ -119,7 +119,7 @@ function traverseAllChildrenImpl(
|
||||
var child;
|
||||
var nextName;
|
||||
var subtreeCount = 0; // Count of children found in the current subtree.
|
||||
var nextNamePrefix = nameSoFar !== '' ? nameSoFar + SUBSEPARATOR : SEPARATOR;
|
||||
var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
||||
|
||||
if (Array.isArray(children)) {
|
||||
for (var i = 0; i < children.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user