Skip to content

Commit afe12b4

Browse files
committed
fix: update incorrect comments
1 parent 5799449 commit afe12b4

File tree

1 file changed

+2
-2
lines changed
  • pkg/dependency/parser/dotnet/core_deps

1 file changed

+2
-2
lines changed

pkg/dependency/parser/dotnet/core_deps/parse.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (p *Parser) Parse(r xio.ReadSeekerAt) ([]ftypes.Package, []ftypes.Dependenc
103103
return pkgs, nil, nil
104104
}
105105

106-
// isRuntimeLibrary returns true if library doesn't contain `runtime`, `runtimeTarget` and `native` sections.
106+
// isRuntimeLibrary returns true if library contains `runtime`, `runtimeTarget` or `native` sections, or if the library is missing from `targetLibs`.
107107
// See https://github.com/aquasecurity/trivy/discussions/4282#discussioncomment-8830365 for more details.
108108
func (p *Parser) isRuntimeLibrary(targetLibs map[string]TargetLib, library string) bool {
109109
lib, ok := targetLibs[library]
@@ -115,7 +115,7 @@ func (p *Parser) isRuntimeLibrary(targetLibs map[string]TargetLib, library strin
115115
})
116116
return true
117117
}
118-
// Check that `runtime`, `runtimeTarget` and `native` sections are empty
118+
// Check that `runtime`, `runtimeTarget` and `native` sections are not empty
119119
return !lo.IsEmpty(lib)
120120
}
121121

0 commit comments

Comments
 (0)