Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bcmmbaga committed Jan 8, 2024
1 parent ca917b4 commit 8c5eded
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion management/server/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,7 @@ func TestAccount_Copy(t *testing.T) {
PostureChecks: []*posture.Checks{
{
ID: "posture Checks1",
Checks: make([]posture.Check, 0),
Checks: map[string]posture.Check{},
},
},
Settings: &Settings{},
Expand Down
3 changes: 1 addition & 2 deletions management/server/http/posture_checks_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ func (p *PostureChecksHandler) savePostureChecks(
ID: postureChecksID,
Name: req.Name,
Description: req.Description,
//Checks: make([]posture.Check, 0),
Checks: make(map[string]posture.Check, 0),
Checks: make(map[string]posture.Check, 0),
}

if nbVersionCheck := req.Checks.NbVersionCheck; nbVersionCheck != nil {
Expand Down

0 comments on commit 8c5eded

Please sign in to comment.