Skip to content

Commit

Permalink
fix(util): fix ts complainig related to unnecessary assigning pluginP…
Browse files Browse the repository at this point in the history
…arameters to {}
  • Loading branch information
manushak committed Sep 21, 2024
1 parent f57fd97 commit 17f823b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/if-run/util/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ export const storeAggregationMethods = (
const plugin = pluginStorage.get(pluginName);

if ('inputs' in plugin.metadata || 'outputs' in plugin.metadata) {
const pluginParameters =
{...plugin.metadata.inputs, ...plugin.metadata.outputs} || {};
const pluginParameters = {
...plugin.metadata.inputs,
...plugin.metadata.outputs,
};

Object.entries(pluginParameters).forEach(
([parameterName, parameterMetadata]) => {
Expand Down

0 comments on commit 17f823b

Please sign in to comment.