mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
fix boolExprSimplify from go-critic
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -111,7 +111,6 @@ linters:
|
||||
- assignOp
|
||||
- badCall
|
||||
- badLock
|
||||
- boolExprSimplify
|
||||
- builtinShadow
|
||||
- builtinShadowDecl
|
||||
- captLocal
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user