From 91612d9be064798968d4e31b579cb02ff443f65e Mon Sep 17 00:00:00 2001 From: cetteup Date: Tue, 16 Apr 2024 23:29:46 +0200 Subject: [PATCH] fix: Don't use iota twice in a single const declaration block --- pkg/game_launcher/game_launcher.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/game_launcher/game_launcher.go b/pkg/game_launcher/game_launcher.go index b53e65f..e72c1ee 100644 --- a/pkg/game_launcher/game_launcher.go +++ b/pkg/game_launcher/game_launcher.go @@ -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"