Skip to content

Commit 63b6305

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent e204726 commit 63b6305

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cyclonedx/model/vulnerability.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,9 +613,9 @@ def get_from_vector(vector: str) -> 'VulnerabilityScoreSource':
613613
"""
614614
if vector.startswith('CVSS:4.'):
615615
return VulnerabilityScoreSource.CVSS_V4
616-
if vector.startswith('CVSS:3.1'):
617-
return VulnerabilityScoreSource.CVSS_V3_1
618616
if vector.startswith('CVSS:3.'):
617+
if vector.startswith('CVSS:3.1'):
618+
return VulnerabilityScoreSource.CVSS_V3_1
619619
return VulnerabilityScoreSource.CVSS_V3
620620
if vector.startswith('CVSS:2.'):
621621
return VulnerabilityScoreSource.CVSS_V2

0 commit comments

Comments
 (0)