pgsql: fix unchecked error

This commit is contained in:
Sergey 2019-01-21 17:57:52 +05:00
parent 97b4b1ac33
commit a57d806717
No known key found for this signature in database
GPG Key ID: E291860300B0B63C

View File

@ -159,6 +159,9 @@ func (tx *pgSession) CacheAffectedNamespacedFeatures(features []database.Namespa
}
cache, err := tx.searchAffectingVulnerabilities(features)
if err != nil {
return err
}
keys := make([]interface{}, len(cache)*3)
for i, c := range cache {