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:
commit
990c74a1a6
1 changed files with 1 additions and 2 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue