Skip to content

Commit

Permalink
formatting on comments
Browse files Browse the repository at this point in the history
Signed-off-by: Sudhanshu Bawane <[email protected]>
  • Loading branch information
SudhanshuBawane committed Jan 30, 2024
1 parent 926185c commit 0e95059
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion asset/boltdb_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ func (b *boltDBAssetManager) Get(ctx context.Context, asset *corev2.Asset) (*Run
if value != nil {
// deserialize asset
if err := json.Unmarshal(value, &localAsset); err == nil {
logger.Println(err)
return nil
}
}
Expand Down
5 changes: 1 addition & 4 deletions asset/expander_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import (
"github.com/sensu/sensu-go/testing/testutil"
)

//var asset *v2.Asset

// sudhanshu- Git issue 5009

// ---Test to check CleanUp
func TestCleanUp(t *testing.T) {
t.Parallel()

Expand Down
3 changes: 0 additions & 3 deletions cli/commands/asset/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ func AddCommand(cli *cli.SensuCli) *cobra.Command {

func addCommandExecute(cli *cli.SensuCli) func(cmd *cobra.Command, args []string) error {
return func(cmd *cobra.Command, args []string) error {
//sudhanshu/5009
//check if asset.db exits if not then re-create it also delete the SHA associated with it and re-create it.
//
// If no name is present print out usage
if len(args) != 1 {
_ = cmd.Help()
Expand Down

0 comments on commit 0e95059

Please sign in to comment.