Skip to content

Commit

Permalink
fix(classes): adjust code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Jan 30, 2021
1 parent 4682fbf commit cf53a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/classes/src/lib/utils/instantiate.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ export function instantiate<TModel extends Dictionary<TModel>>(
if (Array.isArray(valueAtKey)) {
// loop through each value and recursively call instantiate with each value
instance[key] = valueAtKey.map((val) => {
const [instantiateResult] = instantiate(
const [instantiateResultItem] = instantiate(
instanceStorage,
metadataStorage,
metaResult as Constructible,
val
);
return instantiateResult;
return instantiateResultItem;
});
continue;
}
Expand Down

0 comments on commit cf53a1f

Please sign in to comment.