Skip to content
Snippets Groups Projects
Commit a6e22e53 authored by Edward Welch's avatar Edward Welch
Browse files

need to remove this return statement or positions will never be cleaned up

parent fc389b6a
No related branches found
No related tags found
No related merge requests found
......@@ -138,12 +138,11 @@ func (p *Positions) cleanup() {
if os.IsNotExist(err) {
// File no longer exists.
toRemove = append(toRemove, k)
return
} else {
// Can't determine if file exists or not, some other error.
level.Warn(p.logger).Log("msg", "could not determine if log file "+
"still exists while cleaning positions file", "error", err)
}
// Can't determine if file exists or not, some other error.
level.Warn(p.logger).Log("msg", "could not determine if log file "+
"still exists while cleaning positions file", "error", err)
}
}
for _, tr := range toRemove {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment