Skip to content

Commit 91612d9

Browse files
committed
fix: Don't use iota twice in a single const declaration block
1 parent 4a45214 commit 91612d9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/game_launcher/game_launcher.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ import (
99
"github.com/rs/zerolog/log"
1010
)
1111

12-
type LaunchDir int
13-
type LaunchType int
12+
type LaunchDir string
13+
type LaunchType string
1414
type HookWhen string
1515

1616
const (
17-
LaunchDirInstallDir LaunchDir = iota
18-
LaunchDirBinaryDir
17+
LaunchDirInstallDir LaunchDir = "install-dir"
18+
LaunchDirBinaryDir LaunchDir = "binary-dir"
1919

20-
LaunchTypeLaunchAndJoin LaunchType = iota
21-
LaunchTypeLaunchOnly
20+
LaunchTypeLaunchAndJoin LaunchType = "launch-and-join"
21+
LaunchTypeLaunchOnly LaunchType = "launch-only"
2222

2323
HookWhenAlways HookWhen = "always"
2424
HookWhenPreLaunch HookWhen = "pre-launch"

0 commit comments

Comments
 (0)