Skip to content

Commit

Permalink
pgsql: fix unchecked error
Browse files Browse the repository at this point in the history
  • Loading branch information
saromanov committed Jan 21, 2019
1 parent 97b4b1a commit a57d806
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions database/pgsql/feature.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a57d806

Please sign in to comment.