Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
Signed-off-by: SudhanshuBawane <[email protected]>
  • Loading branch information
SudhanshuBawane committed Mar 12, 2024
1 parent 18f450c commit 001844f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
7 changes: 2 additions & 5 deletions CHANGELOG-6.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 1 addition & 6 deletions asset/expander.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 001844f

Please sign in to comment.