mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
Completing the test for distro version
Signed-off-by: Jose Miguel Parrella <j@bureado.com>
This commit is contained in:
parent
706322f826
commit
c825ae2404
@ -91,7 +91,7 @@ func assemble(name, version, like string) *Distro {
|
|||||||
distroType, ok := IDMapping[name]
|
distroType, ok := IDMapping[name]
|
||||||
|
|
||||||
// Both distro and version must be present
|
// Both distro and version must be present
|
||||||
if len(name) == 0 {
|
if len(name) == 0 && len(version) == 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user