Skip to content

Commit

Permalink
refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrahaleva-msft committed Jun 20, 2024
1 parent f05d33f commit 710fc76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@ private MakeListAggregator(CosmosArray initialList)
{
this.globalList = new List<CosmosElement>();

// InitialList should never be null, but if it is we just keep global list as an empty list.
if (initialList == null)
{
return;
}

this.globalList.AddRange(initialList.ToList<CosmosElement>());
this.Aggregate(initialList);
}

public void Aggregate(CosmosElement localList)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@ private MakeSetAggregator(CosmosArray initialSet)
{
this.globalSet = new HashSet<CosmosElement>();

// InitialSet should never be null, but if it is we just keep globalSet as an empty set.
if (initialSet == null)
{
return;
}

this.globalSet.UnionWith(initialSet.ToList<CosmosElement>());
this.Aggregate(initialSet);
}

public void Aggregate(CosmosElement localSet)
Expand Down

0 comments on commit 710fc76

Please sign in to comment.