From 464b8ef7784799de0ab5d399dffdc0be859c3d87 Mon Sep 17 00:00:00 2001 From: jabuxas Date: Sat, 21 Sep 2024 13:30:17 -0300 Subject: [PATCH] style: lint --- helpers.go | 4 +++- spire.go | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) 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() }