Skip to content

Commit

Permalink
fix: Don't use iota twice in a single const declaration block
Browse files Browse the repository at this point in the history
  • Loading branch information
cetteup committed Apr 16, 2024
1 parent 4a45214 commit 91612d9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/game_launcher/game_launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ import (
"github.com/rs/zerolog/log"
)

type LaunchDir int
type LaunchType int
type LaunchDir string
type LaunchType string
type HookWhen string

const (
LaunchDirInstallDir LaunchDir = iota
LaunchDirBinaryDir
LaunchDirInstallDir LaunchDir = "install-dir"
LaunchDirBinaryDir LaunchDir = "binary-dir"

LaunchTypeLaunchAndJoin LaunchType = iota
LaunchTypeLaunchOnly
LaunchTypeLaunchAndJoin LaunchType = "launch-and-join"
LaunchTypeLaunchOnly LaunchType = "launch-only"

HookWhenAlways HookWhen = "always"
HookWhenPreLaunch HookWhen = "pre-launch"
Expand Down

0 comments on commit 91612d9

Please sign in to comment.