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

Merge branch 'sha-handling' into unittest

This commit is contained in:
koplas 2024-11-22 16:58:46 +01:00
commit 990c74a1a6

View file

@ -783,9 +783,8 @@ func loadHashes(client util.Client, hashes []hashFetchInfo) ([]byte, []byte, []b
} }
if a.preferred && !b.preferred { if a.preferred && !b.preferred {
return -1 return -1
} else {
return 1
} }
return 1
}) })
for _, h := range hashes { for _, h := range hashes {
if remote, data, err := loadHash(client, h.url); err != nil { if remote, data, err := loadHash(client, h.url); err != nil {