Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
swiatekm committed Oct 21, 2024
1 parent c40fe34 commit b31141f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/publisher/queue/memqueue/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b31141f

Please sign in to comment.