mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 14:27:27 -08:00
fix megacheck issue: simplified return err
This commit is contained in:
parent
c2182820ed
commit
e5dabad1d7
5
db.go
5
db.go
|
@ -725,10 +725,7 @@ func (db *DB) Delete(mint, maxt int64, ms ...labels.Matcher) error {
|
||||||
g.Go(func() error {
|
g.Go(func() error {
|
||||||
return db.head.Delete(mint, maxt, ms...)
|
return db.head.Delete(mint, maxt, ms...)
|
||||||
})
|
})
|
||||||
if err := g.Wait(); err != nil {
|
return g.Wait()
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CleanTombstones re-writes any blocks with tombstones.
|
// CleanTombstones re-writes any blocks with tombstones.
|
||||||
|
|
Loading…
Reference in a new issue