reformatting some code

This commit is contained in:
Michael Shanks 2019-10-31 09:22:46 +00:00
parent 3c051eea57
commit f85d080496
1 changed files with 9 additions and 1 deletions

View File

@ -82,7 +82,15 @@ const addToParent = (obj) => {
if (isIndex(obj))
// Q: why are indexes not children ?
// A: because they cannot have children of their own.
{ parent.indexes.push(obj); } else if (isaggregateGroup(obj)) { parent.aggregateGroups.push(obj); } else { parent.children.push(obj); }
{
parent.indexes.push(obj);
}
else if (isaggregateGroup(obj))
{
parent.aggregateGroups.push(obj);
} else {
parent.children.push(obj);
}
if (isRecord(obj)) {
const defaultIndex = find(