From 6a210ca550b18cce245ba2ae5a56bc54913a881f Mon Sep 17 00:00:00 2001 From: SudhanshuBawane Date: Thu, 25 Jan 2024 20:41:54 +0530 Subject: [PATCH] Final with signoff Signed-off-by: SudhanshuBawane --- asset/boltdb_manager.go | 2 +- asset/expander_test.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/asset/boltdb_manager.go b/asset/boltdb_manager.go index a8403d426..180692275 100644 --- a/asset/boltdb_manager.go +++ b/asset/boltdb_manager.go @@ -256,7 +256,7 @@ func (b *boltDBAssetManager) expandWithDuration(tmpFile *os.File, asset *corev2. fullPath := filepath.Join(CacheDir, assetSHA) if err := CleanUp(fullPath); err != nil { //fix for git issue 5009 - fmt.Errorf("error cleaning up the SHA dir: %s", err) + logger.Println("error cleaning up the SHA dir: %s", err) } assetPath = filepath.Join(b.localStorage, asset.Sha512) diff --git a/asset/expander_test.go b/asset/expander_test.go index 640cf014d..0f4e307d3 100644 --- a/asset/expander_test.go +++ b/asset/expander_test.go @@ -1,7 +1,6 @@ package asset import ( - v2 "github.com/sensu/core/v2" "os" "path/filepath" "testing" @@ -9,7 +8,7 @@ import ( "github.com/sensu/sensu-go/testing/testutil" ) -var asset *v2.Asset +//var asset *v2.Asset // sudhanshu- Git issue 5009