mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
fix badLock from go-critic
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -110,7 +110,6 @@ linters:
|
||||
- appendCombine
|
||||
- assignOp
|
||||
- badCall
|
||||
- badLock
|
||||
- builtinShadow
|
||||
- builtinShadowDecl
|
||||
- captLocal
|
||||
|
||||
@@ -371,7 +371,7 @@ func (w *LogFile) Close() error {
|
||||
close(w.closed)
|
||||
// Wait until any in-progress rotation is complete.
|
||||
w.rotateMu.Lock()
|
||||
w.rotateMu.Unlock() //nolint:staticcheck
|
||||
w.rotateMu.Unlock() //nolint:staticcheck,gocritic
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user