fix megacheck issue: simplified return err

This commit is contained in:
Mario Trangoni 2018-03-21 22:23:47 +01:00
parent c2182820ed
commit e5dabad1d7

5
db.go
View file

@ -725,10 +725,7 @@ func (db *DB) Delete(mint, maxt int64, ms ...labels.Matcher) error {
g.Go(func() error {
return db.head.Delete(mint, maxt, ms...)
})
if err := g.Wait(); err != nil {
return err
}
return nil
return g.Wait()
}
// CleanTombstones re-writes any blocks with tombstones.