From ca8ea96c7d1a79e687394cc0dbda90ec03fd165b Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 8 Mar 2024 16:41:03 +0100 Subject: [PATCH] Lint: Fix linter error Signed-off-by: Knut Ahlers --- internal/database/store_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/database/store_test.go b/internal/database/store_test.go index 65b8503..05e9e4b 100644 --- a/internal/database/store_test.go +++ b/internal/database/store_test.go @@ -94,15 +94,14 @@ func Test_LogStorage(t *testing.T) { rt = time.Now() ) - for _, le := range []LogEntry{ + for _, le := range []*LogEntry{ {CatalogName: ce.Name, CatalogTag: ce.Tag, Timestamp: rt.Add(-3 * time.Hour), VersionFrom: "1.0.0", VersionTo: "1.1.0"}, {CatalogName: ce.Name, CatalogTag: ce.Tag, Timestamp: rt.Add(-1 * time.Hour), VersionFrom: "1.2.0", VersionTo: "1.3.0"}, {CatalogName: ce.Name, CatalogTag: ce.Tag, Timestamp: rt.Add(-2 * time.Hour), VersionFrom: "1.1.0", VersionTo: "1.2.0"}, {CatalogName: "anotherapp", CatalogTag: ce.Tag, Timestamp: rt.Add(-2 * time.Hour), VersionFrom: "5.2.0", VersionTo: "5.2.1"}, {CatalogName: "anotherapp", CatalogTag: ce.Tag, Timestamp: rt.Add(-1 * time.Hour), VersionFrom: "5.2.1", VersionTo: "6.0.0"}, } { - //#nosec G601 // Acceptable for test usage - if err = dbc.Logs.Add(&le); err != nil { + if err = dbc.Logs.Add(le); err != nil { t.Fatalf("unable to add log entry: %s", err) } }