Merge pull request #4734 from zpao/reverse-logic

Reverse condition of a ternary for readability
This commit is contained in:
Paul O’Shannessy committed 2015-08-28 11:39:48 -07:00
commit e53cee9af6
1 file changed
+1 -1
+1 -1
View File
@@ -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++) {