From 001844fbd558ccaaeda97eefe1c8205d1ee61cb1 Mon Sep 17 00:00:00 2001 From: SudhanshuBawane Date: Wed, 13 Mar 2024 04:28:11 +0530 Subject: [PATCH] final Signed-off-by: SudhanshuBawane --- CHANGELOG-6.md | 7 ++----- asset/expander.go | 7 +------ 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/CHANGELOG-6.md b/CHANGELOG-6.md index bbaab6542..275bab5cd 100644 --- a/CHANGELOG-6.md +++ b/CHANGELOG-6.md @@ -10,11 +10,8 @@ Versioning](http://semver.org/spec/v2.0.0.html). ### 2024-02-01 -### Changed -- The expandWithDuration in boltdb_manager to have a assetSHA dir cleanup. - -### Added -- Added the cleanup in expander to clean the assetSHA in case of asset cache getting deleted +### Fixed +- Assets can now be re-installed when the asset.db file has been deleted. ### Changed - Upgraded CI Go version to 1.21.3 diff --git a/asset/expander.go b/asset/expander.go index 7b3651a59..ef59d7bc1 100644 --- a/asset/expander.go +++ b/asset/expander.go @@ -94,10 +94,5 @@ func sniffType(f io.ReadSeeker) (filetype_types.Type, error) { // cleanup of the assetSHA when cache dir gets force deleted func CleanUp(fullPath string) error { - errorSHA := os.RemoveAll(fullPath) - if errorSHA != nil { - return errorSHA - } - return nil - + return os.RemoveAll(fullPath) }