fix boolExprSimplify from go-critic

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-05-26 22:19:22 +02:00
parent e5be7b54b1
commit 8f7faa01d1
2 changed files with 1 additions and 2 deletions

View File

@@ -111,7 +111,6 @@ linters:
- assignOp
- badCall
- badLock
- boolExprSimplify
- builtinShadow
- builtinShadowDecl
- captLocal

View File

@@ -857,7 +857,7 @@ func (b *eventBatch) add(event wrappedEvent, size int) bool {
// verify we are still within service limits
switch {
case len(b.batch)+1 > maximumLogEventsPerPut:
case len(b.batch) >= maximumLogEventsPerPut:
return false
case b.bytes+addBytes > maximumBytesPerPut:
return false