From 01e5d9e2e5b80b8d70f14f308382de809caad597 Mon Sep 17 00:00:00 2001 From: "Paul B. Beskow" Date: Tue, 29 Oct 2024 12:28:47 +0100 Subject: [PATCH] chore(river): initialise errors map --- pkg/service/core/storage/river/river_workstations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/service/core/storage/river/river_workstations.go b/pkg/service/core/storage/river/river_workstations.go index 3729bc4e..5208eefa 100644 --- a/pkg/service/core/storage/river/river_workstations.go +++ b/pkg/service/core/storage/river/river_workstations.go @@ -180,7 +180,7 @@ func fromRiverJob(job *rivertype.JobRow) (*service.WorkstationJob, error) { state = service.WorkstationJobStateFailed } - var allErrs map[string]struct{} + allErrs := map[string]struct{}{} for _, e := range job.Errors { allErrs[e.Error] = struct{}{}