Skip to content

Commit

Permalink
chore: rename method name
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Feb 10, 2025
1 parent 059e817 commit 5703250
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/injector/topology-tree/topology-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class TopologyTree {
parent: null,
});
this.links.set(moduleRef, this.root);
this.traverseAndCloneTree(this.root);
this.traverseAndMapToTree(this.root);
}

public walk(callback: (value: Module, depth: number) => void) {
Expand All @@ -22,7 +22,7 @@ export class TopologyTree {
walkNode(this.root);
}

private traverseAndCloneTree(node: TreeNode<Module>, depth = 1) {
private traverseAndMapToTree(node: TreeNode<Module>, depth = 1) {
node.value.imports.forEach(child => {
if (!child) {
return;
Expand All @@ -48,7 +48,7 @@ export class TopologyTree {

this.links.set(child, childNode);

this.traverseAndCloneTree(childNode, depth + 1);
this.traverseAndMapToTree(childNode, depth + 1);
});
}
}

0 comments on commit 5703250

Please sign in to comment.