Skip to content

Commit

Permalink
feat: custom property support
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <hen.keinan@gmail.com>
  • Loading branch information
chen-keinan committed Jun 22, 2023
1 parent 7f499eb commit 651c9fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sbom/cyclonedx/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,6 @@ func pkgComponent(pkg Package) (*core.Component, error) {

func filterProperties(props []core.Property) []core.Property {
return lo.Filter(props, func(property core.Property, index int) bool {
return property.Value == "" || (property.Name == PropertySrcEpoch && property.Value == "0")
return !(property.Value == "" || (property.Name == PropertySrcEpoch && property.Value == "0"))
})
}

0 comments on commit 651c9fc

Please sign in to comment.