1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Fix type assertions from directory_url expression result

This commit is contained in:
Sascha L. Teichmann 2022-08-01 13:00:10 +02:00
parent 8e13d37756
commit 050e225d07
3 changed files with 18 additions and 2 deletions

View file

@ -153,7 +153,7 @@ func (afp *AdvisoryFileProcessor) Process(
lg("extracting directory URLs failed: %v\n", err)
} else {
var ok bool
dirURLs, ok = directoryURLs.([]string)
dirURLs, ok = util.AsStrings(directoryURLs)
if !ok {
lg("directory_urls are not strings.\n")
}