[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
const (
defaultModuleDir = "/lib/modules"
unknown status = iota
unloaded
unloading
loading
live
inuse
envDisableWireGuardKernel = "NB_WG_KERNEL_DISABLED"
unknown status = 1
unloaded status = 2
unloading status = 3
loading status = 4
live status = 5
inuse status = 6
defaultModuleDir = "/lib/modules"
envDisableWireGuardKernel = "NB_WG_KERNEL_DISABLED"
)
type module struct {