Skip to content

Commit

Permalink
perf nit
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Apr 12, 2021
1 parent 705fe34 commit fba668e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@ const validateAggregations = (
context: ValidationContext
) => {
return Object.entries(aggregations).reduce((memo, [aggrName, aggrContainer]) => {
return {
...memo,
[aggrName]: validateAggregation(aggrContainer, childContext(context, aggrName)),
};
memo[aggrName] = validateAggregation(aggrContainer, childContext(context, aggrName));
return memo;
}, {} as Record<string, estypes.AggregationContainer>);
};

Expand Down

0 comments on commit fba668e

Please sign in to comment.