From 4e7da1da7d9e33d1d73f20e841e58f3b46c0758e Mon Sep 17 00:00:00 2001 From: Victor Login Date: Thu, 23 Nov 2023 21:29:50 +0100 Subject: [PATCH] golint: fix Signed-off-by: Victor Login --- internal/pkg/logger/tracer/tracer_test.go | 1 + internal/pkg/types/queue/queue.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/pkg/logger/tracer/tracer_test.go b/internal/pkg/logger/tracer/tracer_test.go index 9adb589386d..92651fa64b8 100644 --- a/internal/pkg/logger/tracer/tracer_test.go +++ b/internal/pkg/logger/tracer/tracer_test.go @@ -37,6 +37,7 @@ func TestZapFieldsToOpenTelemetry(t *testing.T) { { name: "ErrorField", fields: []field.Fields{ + // nolint: goerr113 // This is a mock error {"errorKey": errors.New("mock error")}, }, want: []attribute.KeyValue{ diff --git a/internal/pkg/types/queue/queue.go b/internal/pkg/types/queue/queue.go index dd8bd171bfb..9503cf5af2a 100644 --- a/internal/pkg/types/queue/queue.go +++ b/internal/pkg/types/queue/queue.go @@ -35,6 +35,7 @@ func (q *Queue[T]) Pop() (T, bool) { v := q.data[0] q.data = q.data[1:] + return v, true }