fix badLock from go-critic

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-06-02 22:14:28 +02:00
parent 19f5ac3c81
commit c466ae0f71
2 changed files with 1 additions and 2 deletions

View File

@@ -110,7 +110,6 @@ linters:
- appendCombine
- assignOp
- badCall
- badLock
- builtinShadow
- builtinShadowDecl
- captLocal

View File

@@ -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
}