diff options
author | 6543 <6543@obermui.de> | 2023-07-07 07:31:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-07 05:31:56 +0000 |
commit | 8995046110147ae2c8c98be4e0a8c0b643ccc29c (patch) | |
tree | 94a3007199687c0a68eee5889af1619f1eebaf61 /modules/process/manager.go | |
parent | b1eb1676aa95d776ff9085002641ad62e040cd93 (diff) | |
download | gitea-8995046110147ae2c8c98be4e0a8c0b643ccc29c.tar.gz gitea-8995046110147ae2c8c98be4e0a8c0b643ccc29c.zip |
Less naked returns (#25713)
just a step towards #25655
and some related refactoring
Diffstat (limited to 'modules/process/manager.go')
-rw-r--r-- | modules/process/manager.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/process/manager.go b/modules/process/manager.go index 56908c0408..9c21f62152 100644 --- a/modules/process/manager.go +++ b/modules/process/manager.go @@ -211,7 +211,7 @@ func (pm *Manager) nextPID() (start time.Time, pid IDType) { pid = IDType(strconv.FormatInt(start.Unix(), 16)) if pm.next == 1 { - return + return start, pid } pid = IDType(string(pid) + "-" + strconv.FormatInt(pm.next, 10)) return start, pid |