Skip to content

Commit 9eab8d1

Browse files
committed
fix: fix the problem that template impact results incorrect
1 parent 5debea3 commit 9eab8d1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/impact.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ function findWhoCallMe (treeData: FileInfoTree, funcInfo: ImpactReason, reportIn
7272

7373
for (const fileInfo in treeData) {
7474
// these found functions are used to find the impact of template
75-
const templateImpactSearchFunc: NameAndPath = {
76-
[funcName]: curFilePath
77-
};
75+
const templateImpactSearchFunc: NameAndPath = {};
7876

7977
const allFuncsInfo = treeData[fileInfo].allFuncsInfo;
8078
const templateKeyInfo = treeData[fileInfo].templateKeyInfo;

0 commit comments

Comments
 (0)