Merge pull request #695 from saromanov/fix-unchecked-error

pgsql: fix unchecked error
This commit is contained in:
Sida Chen 2019-02-27 13:05:52 -05:00 committed by GitHub
commit f7e54c1a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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