Other: Don't clean settings path on teardown

This commit is contained in:
James Houlahan
2023-01-18 08:43:45 +01:00
parent 1d405076e6
commit a00e2acb5c
3 changed files with 1 additions and 70 deletions

View File

@ -322,14 +322,7 @@ func WithLocations(fn func(*locations.Locations) error) error {
}
// Create a new locations object that will be used to provide paths to store files.
locations := locations.New(provider, constants.ConfigName)
defer func() {
if err := locations.Clean(); err != nil {
logrus.WithError(err).Error("Failed to clean locations")
}
}()
return fn(locations)
return fn(locations.New(provider, constants.ConfigName))
}
// Start profiling if requested.