Skip to content

Commit

Permalink
feat: add bom.definitions
Browse files Browse the repository at this point in the history
for CycloneDX#697

Signed-off-by: Hakan Dilek <[email protected]>
  • Loading branch information
hakandilek committed Oct 28, 2024
1 parent e18d377 commit 73019e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cyclonedx/model/bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,8 @@ def vulnerabilities(self, vulnerabilities: Iterable[Vulnerability]) -> None:
def definitions(self) -> Optional[Definitions]:
"""
The repository for definitions
Returns:
`DefinitionRepository`
`Definitions`
"""
return self._definitions if len(self._definitions.standards) > 0 else None

Expand Down

0 comments on commit 73019e4

Please sign in to comment.