Skip to content

Commit

Permalink
test: early return when imports undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Feb 10, 2025
1 parent 5703250 commit 1832c9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/injector/topology-tree/topology-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export class TopologyTree {
}

private traverseAndMapToTree(node: TreeNode<Module>, depth = 1) {
if (!node.value.imports) {
return;
}
node.value.imports.forEach(child => {
if (!child) {
return;
Expand Down

0 comments on commit 1832c9e

Please sign in to comment.