aboutsummaryrefslogtreecommitdiffstats
path: root/modules/graceful
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-12-15 03:31:07 +0100
committerGitHub <noreply@github.com>2024-12-15 02:31:07 +0000
commit1cfb718976e2db517da0e76bda835edd9df1fabd (patch)
tree556f0e895ce6d6f35d57266ea9c51e68c7f89ce6 /modules/graceful
parent7616aeb2ea2a02c15480dcd4a232e98081569690 (diff)
downloadgitea-1cfb718976e2db517da0e76bda835edd9df1fabd.tar.gz
gitea-1cfb718976e2db517da0e76bda835edd9df1fabd.zip
Update golangci-lint to v1.62.2, fix issues (#32845)
Update it and fix new issues related to `redefines-builtin-id`
Diffstat (limited to 'modules/graceful')
-rw-r--r--modules/graceful/manager.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/graceful/manager.go b/modules/graceful/manager.go
index 3f1115066a..991b2f2b7a 100644
--- a/modules/graceful/manager.go
+++ b/modules/graceful/manager.go
@@ -218,13 +218,13 @@ func (g *Manager) ServerDone() {
g.runningServerWaitGroup.Done()
}
-func (g *Manager) setStateTransition(old, new state) bool {
+func (g *Manager) setStateTransition(oldState, newState state) bool {
g.lock.Lock()
- if g.state != old {
+ if g.state != oldState {
g.lock.Unlock()
return false
}
- g.state = new
+ g.state = newState
g.lock.Unlock()
return true
}