Skip to content

Commit 0aed6d3

Browse files
committed
refactor: extract loop depth
1 parent b757f62 commit 0aed6d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/application/rcall/rcall_graph.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ func BuildMethodCallMap(dataStructs []core_domain.CodeDataStruct, projectMaps ma
6464

6565
var loopCount = 0
6666
var lastChild = ""
67+
var loopDepth = 6
6768

6869
func (c RCallGraph) BuildRCallChain(funcName string, methodMap map[string][]string) string {
69-
if loopCount >= 6 {
70+
if loopCount >= loopDepth {
7071
return "\n"
7172
}
7273
loopCount++

0 commit comments

Comments
 (0)