Skip to content

Commit

Permalink
fix golint
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
  • Loading branch information
matthyx committed May 30, 2023
1 parent 0545618 commit 545f4f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion adapters/mocksbom.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func NewMockSBOMAdapter(error, timeout, toomanyrequests bool) *MockSBOMAdapter {
}

// CreateSBOM returns a dummy SBOM for the given imageID
func (m MockSBOMAdapter) CreateSBOM(ctx context.Context, imageID string, _ domain.RegistryOptions) (domain.SBOM, error) {
func (m MockSBOMAdapter) CreateSBOM(_ context.Context, imageID string, _ domain.RegistryOptions) (domain.SBOM, error) {
logger.L().Info("CreateSBOM")
if m.error {
return domain.SBOM{}, domain.ErrMockError
Expand Down
4 changes: 2 additions & 2 deletions adapters/v1/armo_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func TestGetCVEExceptionMatchCVENameFromList(t *testing.T) {
VulnerabilityPolicies: []armotypes.VulnerabilityPolicy{
{Name: "CVE-2021-1234"},
},
ExpiredOnFix: pointer.BoolPtr(true),
ExpiredOnFix: pointer.Bool(true),
},
{
VulnerabilityPolicies: []armotypes.VulnerabilityPolicy{
Expand All @@ -121,7 +121,7 @@ func TestGetCVEExceptionMatchCVENameFromList(t *testing.T) {
{Name: "CVE-2021-1234"},
{Name: "CVE-2021-9012"},
},
ExpiredOnFix: pointer.BoolPtr(true),
ExpiredOnFix: pointer.Bool(true),
},
},
CVEName: "CVE-2021-1234",
Expand Down

0 comments on commit 545f4f7

Please sign in to comment.