Skip to content

Commit cf0826c

Browse files
committed
style: simplified init
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent f889823 commit cf0826c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cyclonedx/model/tool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ def __init__(
188188
warn('Using Tool is deprecated as of CycloneDX v1.5. Components and Services should be used now. '
189189
'See https://cyclonedx.org/docs/1.5/', DeprecationWarning)
190190

191-
self._components = SortedSet(components or SortedSet())
192-
self._services = SortedSet(services or SortedSet())
193-
self._tools = SortedSet(tools or SortedSet())
191+
self._components = SortedSet(components or [])
192+
self._services = SortedSet(services or [])
193+
self._tools = SortedSet(tools or [])
194194

195195
@property
196196
def components(self) -> 'SortedSet[Component]':

0 commit comments

Comments
 (0)