From 8b333099c454c1aa11296c0c910a15317814adb6 Mon Sep 17 00:00:00 2001 From: knqyf263 Date: Fri, 13 Sep 2024 12:21:05 +0400 Subject: [PATCH] fix: linter error Signed-off-by: knqyf263 --- pkg/sbom/io/encode_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sbom/io/encode_test.go b/pkg/sbom/io/encode_test.go index 223fb0027e11..56dd0116bbdd 100644 --- a/pkg/sbom/io/encode_test.go +++ b/pkg/sbom/io/encode_test.go @@ -744,7 +744,7 @@ func TestEncoder_Encode(t *testing.T) { wantComponents: map[uuid.UUID]*core.Component{ uuid.MustParse(id1): &libComponent, }, - wantRels: map[uuid.UUID][]core.Relationship{}, + wantRels: make(map[uuid.UUID][]core.Relationship), wantVulns: map[uuid.UUID][]core.Vulnerability{ uuid.MustParse(id1): { {