fix ineffectual assignment to err in DeleteCatalog (#1664)

Was being caught by my linters. Looks like the error wasn't being
checked after getCatalog.
This commit is contained in:
Chris Marchesi authored and GitHub committed 2021-11-04 17:09:32 -07:00
1 parent 54bccf3674
commit 165cc5ef1b
1 file changed
+4
@@ -216,6 +216,10 @@ func (r *Repository) DeleteCatalog(ctx context.Context, id string, _ ...Option)
return db.NoRowsAffected, errors.Wrap(ctx, err, op)
}
sets, _, err := r.getSets(ctx, "", c.GetPublicId())
if err != nil {
return db.NoRowsAffected, errors.Wrap(ctx, err, op)
}
var plgSets []*pbset.HostSet
for _, s := range sets {
ps, err := toPluginSet(ctx, s)