Skip to content

Commit

Permalink
[client] Avoid using iota on mixed const block (#3057)
Browse files Browse the repository at this point in the history
Used the values as resolved when the first iota value was the second const in the block.
  • Loading branch information
mlsmaycon authored Dec 16, 2024
1 parent 703647d commit 37ad370
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions client/iface/device/kernel_module_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 37ad370

Please sign in to comment.