mirror of
https://github.com/caddyserver/caddy.git
synced 2025-07-07 18:24:53 -04:00
Fix lint warning
This commit is contained in:
parent
ddf4b1fd3b
commit
b75016e646
2
dist/automate.go
vendored
2
dist/automate.go
vendored
@ -123,7 +123,7 @@ func (p platform) String() string {
|
|||||||
func numProcs() int {
|
func numProcs() int {
|
||||||
n := runtime.GOMAXPROCS(0)
|
n := runtime.GOMAXPROCS(0)
|
||||||
if n == runtime.NumCPU() && n > 1 {
|
if n == runtime.NumCPU() && n > 1 {
|
||||||
n -= 1
|
n--
|
||||||
}
|
}
|
||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user