File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ def timestamp(self, timestamp: datetime) -> None:
8585 @property
8686 def component (self ) -> Optional [Component ]:
8787 """
88- Get a Component of this Bom Metadata .
88+ The (optional) component that the BOM describes .
8989
9090 Returns:
9191 `cyclonedx.model.component.Component` instance for this Bom Metadata.
@@ -95,7 +95,7 @@ def component(self) -> Optional[Component]:
9595 @component .setter
9696 def component (self , component : Component ) -> None :
9797 """
98- Set a Component for this Bom Metadata .
98+ The (optional) component that the BOM describes .
9999
100100 Args:
101101 component
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ def _add_metadata_element(self) -> None:
113113 for tool in bom_metadata .tools :
114114 self ._add_tool (parent_element = tools_e , tool = tool )
115115
116- if bom_metadata .component is not None :
116+ if bom_metadata .component :
117117 metadata_e .append (self ._add_component_element (component = bom_metadata .component ))
118118
119119 def _add_component_element (self , component : Component ) -> ElementTree .Element :
You can’t perform that action at this time.
0 commit comments