mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +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