Skip to content

Commit

Permalink
chore(lib): make aggregate inputs into one private
Browse files Browse the repository at this point in the history
  • Loading branch information
narekhovhannisyan committed Feb 20, 2024
1 parent 4d0023a commit 79a12f6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib/aggregate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ const checkIfMetricsAreValid = (metrics: string[]) => {
* Aggregates child node level metrics. Validates if metric aggregation type is `none`, then rejects with error.
* Otherwise iterates over inputs by aggregating per given `metrics`.
*/
export const aggregateInputsIntoOne = (
inputs: PluginParams[],
metrics: string[]
) => {
const aggregateInputsIntoOne = (inputs: PluginParams[], metrics: string[]) => {
checkIfMetricsAreValid(metrics);

return inputs.reduce((acc, input, index) => {
Expand Down

0 comments on commit 79a12f6

Please sign in to comment.