Skip to content

Commit

Permalink
refactor: remove unnecessary package checking
Browse files Browse the repository at this point in the history
Signed-off-by: nikpivkin <[email protected]>
  • Loading branch information
nikpivkin committed Dec 19, 2024
1 parent 43adf6c commit a45fc4d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/fanal/analyzer/language/python/poetry/poetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,7 @@ func walkPackageDeps(pkgID string, packages map[string]types.Package, visited ma
return
}
visited[pkgID] = struct{}{}
pkg, exists := packages[pkgID]
if !exists {
return
}

for _, dep := range pkg.DependsOn {
for _, dep := range packages[pkgID].DependsOn {
walkPackageDeps(dep, packages, visited)
}
}
Expand Down

0 comments on commit a45fc4d

Please sign in to comment.