From 4d0b24c46a3f719afa36977b52bc926496e6777a Mon Sep 17 00:00:00 2001 From: kayomn Date: Mon, 2 Jan 2023 13:53:59 +0000 Subject: [PATCH] Fix double error-check in game registration logic --- manager.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/manager.go b/manager.go index f3bb25b..e668427 100644 --- a/manager.go +++ b/manager.go @@ -117,10 +117,6 @@ func CreateGame(gameName string, gameDataPath string) error { } if iniFile, openError := os.Open(gamesIniPath); openError == nil { - if (openError != nil) && !(os.IsNotExist(openError)) { - return openError - } - defer func() { if closeError := iniFile.Close(); closeError != nil { panic(closeError)