Fix linter errors

This commit is contained in:
Daniel 2020-09-24 16:38:55 +02:00
parent 82af986224
commit da57ca5792
2 changed files with 2 additions and 1 deletions

View file

@ -280,6 +280,7 @@ func (c *Controller) MaintainRecordStates(ctx context.Context, purgeDeletedBefor
return c.storage.MaintainRecordStates(ctx, purgeDeletedBefore)
}
// Purge deletes all records that match the given query. It returns the number of successful deletes and an error.
func (c *Controller) Purge(ctx context.Context, q *query.Query, local, internal bool) (int, error) {
c.writeLock.RLock()
defer c.writeLock.RUnlock()

View file

@ -298,7 +298,7 @@ func (b *BBolt) MaintainRecordStates(ctx context.Context, purgeDeletedBefore tim
}
// Purge deletes all records that match the given query. It returns the number of successful deletes and an error.
func (b *BBolt) Purge(ctx context.Context, q *query.Query, local, internal, shadowDelete bool) (int, error) {
func (b *BBolt) Purge(ctx context.Context, q *query.Query, local, internal, shadowDelete bool) (int, error) { //nolint:gocognit
prefix := []byte(q.DatabaseKeyPrefix())
var cnt int