diff --git a/helpers.go b/helpers.go index 1f03a98..fe240c5 100644 --- a/helpers.go +++ b/helpers.go @@ -38,7 +38,9 @@ func DownloadBepinex() error { // download only if it doesnt exist if _, err := os.Stat(tmpPath); err != nil { - resp, err := http.Get("https://github.com/BepInEx/BepInEx/releases/download/v5.4.23.2/BepInEx_win_x64_5.4.23.2.zip") + resp, err := http.Get( + "https://github.com/BepInEx/BepInEx/releases/download/v5.4.23.2/BepInEx_win_x64_5.4.23.2.zip", + ) if err != nil { return fmt.Errorf("could not download bepinex: %w", err) } diff --git a/spire.go b/spire.go index 764ac05..5948a4b 100644 --- a/spire.go +++ b/spire.go @@ -37,9 +37,7 @@ func getCache() error { } func installBepinex() { - _, err := os.Stat(GAME_PATH + "/BepInEx") - - if err != nil { + if _, err := os.Stat(GAME_PATH + "/BepInEx"); err != nil { // install bepinex DownloadBepinex() }