We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42faa0 commit ff53e81Copy full SHA for ff53e81
pkg/database/api-fetch-all.go
@@ -11,16 +11,16 @@ func (db APIDB) FetchAll(ids []string) Vulnerabilities {
11
12
eg.SetLimit(200)
13
14
- var osvs Vulnerabilities
+ osvs := make(Vulnerabilities, len(ids))
15
16
- for _, id := range ids {
+ for i, id := range ids {
17
eg.Go(func() error {
18
// if we error, still report the vulnerability as hopefully the ID should be
19
// enough to manually look up the details - in future we should ideally warn
20
// the user too, but for now we just silently eat the error
21
osv, _ := db.Fetch(id)
22
23
- osvs = append(osvs, osv)
+ osvs[i] = osv
24
25
return nil
26
})
0 commit comments