From 61e9c7e714920cc3c21b4111bf19b0c4aa5b9995 Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Mon, 1 Jul 2024 11:28:45 +0600 Subject: [PATCH] refactor(analyzer): remove unneeded comment --- pkg/fanal/analyzer/language/conda/environment/environment.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/fanal/analyzer/language/conda/environment/environment.go b/pkg/fanal/analyzer/language/conda/environment/environment.go index ca52cb31bc1b..1eaf279efd51 100644 --- a/pkg/fanal/analyzer/language/conda/environment/environment.go +++ b/pkg/fanal/analyzer/language/conda/environment/environment.go @@ -35,8 +35,6 @@ func (*parser) Parse(r xio.ReadSeekerAt) ([]types.Package, []types.Dependency, e } once := sync.Once{} - // res always contains only 1 Application - // cf. https://github.com/aquasecurity/trivy/blob/0ccdbfbb6598a52de7cda603ab22e794f710e86c/pkg/fanal/analyzer/language/analyze.go#L32 for i, pkg := range pkgs.Packages { // Skip packages without a version, because in this case we will not be able to get the correct file name. if pkg.Version != "" { @@ -44,7 +42,7 @@ func (*parser) Parse(r xio.ReadSeekerAt) ([]types.Package, []types.Dependency, e if err != nil { // Show log once per file once.Do(func() { - log.WithPrefix("conda").Debug("License not found. See https://aquasecurity.github.io/trivy/latest/docs/coverage/os/conda/#licenses for details", + log.WithPrefix("conda").Debug("License not found. See https://aquasecurity.github.io/trivy/latest/docs/coverage/os/conda/#license_1 for details", log.String("pkg", pkg.Name), log.Err(err)) }) }