From b31141f9acdd41f1a88549243d8ac027e59a7cec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20=C5=9Awi=C4=85tek?= Date: Mon, 21 Oct 2024 11:35:43 +0200 Subject: [PATCH] Fix linter errors --- libbeat/publisher/queue/memqueue/broker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbeat/publisher/queue/memqueue/broker.go b/libbeat/publisher/queue/memqueue/broker.go index b617bae61102..e060eedb85e6 100644 --- a/libbeat/publisher/queue/memqueue/broker.go +++ b/libbeat/publisher/queue/memqueue/broker.go @@ -290,7 +290,7 @@ var batchPool = sync.Pool{ } func newBatch(queue *broker, start, count int) *batch { - batch := batchPool.Get().(*batch) + batch := batchPool.Get().(*batch) //nolint: errcheck // we want this to panic if there's an error batch.next = nil batch.queue = queue batch.start = start