[client] Avoid using iota on mixed const block (#3057)

Used the values as resolved when the first iota value was the second const in the block.
This commit is contained in:
Maycon Santos 2024-12-16 18:09:31 +01:00 committed by GitHub
parent 703647da1e
commit 37ad370344
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,14 +27,14 @@ import (
type status int type status int
const ( const (
defaultModuleDir = "/lib/modules" unknown status = 1
unknown status = iota unloaded status = 2
unloaded unloading status = 3
unloading loading status = 4
loading live status = 5
live inuse status = 6
inuse defaultModuleDir = "/lib/modules"
envDisableWireGuardKernel = "NB_WG_KERNEL_DISABLED" envDisableWireGuardKernel = "NB_WG_KERNEL_DISABLED"
) )
type module struct { type module struct {