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 }