forked from Silverfish/proton-bridge
Other: Clean locations on teardown
This commit is contained in:
@ -219,6 +219,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 locations.Clean()
|
||||
|
||||
return fn(locations)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user