Skip to content

Commit dbfb9f6

Browse files
committed
fix: gradle scan dep exists
1 parent 4a08ec6 commit dbfb9f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opensca/sca/groovy/gradle.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ func GradleTree(ctx context.Context, dir *model.File) []*model.DepGraph {
170170
if dep == nil {
171171
continue
172172
}
173-
dep.Expand = c
173+
if dep.Expand == nil {
174+
dep.Expand = c
175+
}
174176
n.AppendChild(dep)
175177
}
176178
return true

0 commit comments

Comments
 (0)