mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Fix type assertions from directory_url expression result
This commit is contained in:
parent
8e13d37756
commit
050e225d07
3 changed files with 18 additions and 2 deletions
|
|
@ -918,7 +918,7 @@ func (p *processor) checkCSAFs(domain string) error {
|
|||
p.badProviderMetadata.warn("extracting directory URLs failed: %v.", err)
|
||||
} else {
|
||||
var ok bool
|
||||
dirURLs, ok = directoryURLs.([]string)
|
||||
dirURLs, ok = util.AsStrings(directoryURLs)
|
||||
if !ok {
|
||||
p.badProviderMetadata.warn("directory URLs are not strings.")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue