From 907683d5554ade0458d67180baeb5f51b2ba8de6 Mon Sep 17 00:00:00 2001 From: Pierre Baumard Date: Wed, 17 Jul 2024 11:49:15 +0200 Subject: [PATCH] Fix linter --- pkg/sbom/spdx/marshal_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sbom/spdx/marshal_test.go b/pkg/sbom/spdx/marshal_test.go index 7e8bd219f7b0..5ef30a7f735c 100644 --- a/pkg/sbom/spdx/marshal_test.go +++ b/pkg/sbom/spdx/marshal_test.go @@ -1218,7 +1218,7 @@ func TestMarshaler_Marshal(t *testing.T) { spdxDoc, err := marshaler.MarshalReport(ctx, tc.inputReport) require.NoError(t, err) - assert.Equal(t, nil, spdxlib.ValidateDocument(tc.wantSBOM)) + assert.NoError(t, spdxlib.ValidateDocument(spdxDoc)) assert.Equal(t, tc.wantSBOM, spdxDoc) }) }