Skip to content

Commit

Permalink
fix(builtins): remove unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
narekhovhannisyan committed May 24, 2024
1 parent 677cfd3 commit 80063fc
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions src/builtins/mock-observations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,19 @@ export const MockObservations = (globalConfig: ConfigParams): ExecutePlugin => {

const defaults = inputs && inputs[0];

return Object.entries(components).reduce(
(acc: PluginParams[], [_key, component]) => {
timeBuckets.forEach(timeBucket => {
const observation = createObservation(
{duration, component, timeBucket, generators},
generatorToHistory
);

acc.push(Object.assign({}, defaults, observation));
});

return acc;
},
[]
);
return Object.entries(components).reduce((acc: PluginParams[], item) => {
const component = item[1];
timeBuckets.forEach(timeBucket => {
const observation = createObservation(
{duration, component, timeBucket, generators},
generatorToHistory
);

acc.push(Object.assign({}, defaults, observation));
});

return acc;
}, []);
};

/**
Expand Down

0 comments on commit 80063fc

Please sign in to comment.