style: lint

This commit is contained in:
jabuxas 2024-09-21 13:30:17 -03:00
parent 4f99e500c0
commit 464b8ef778
2 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,9 @@ func DownloadBepinex() error {
// download only if it doesnt exist // download only if it doesnt exist
if _, err := os.Stat(tmpPath); err != nil { 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 { if err != nil {
return fmt.Errorf("could not download bepinex: %w", err) return fmt.Errorf("could not download bepinex: %w", err)
} }

View File

@ -37,9 +37,7 @@ func getCache() error {
} }
func installBepinex() { func installBepinex() {
_, err := os.Stat(GAME_PATH + "/BepInEx") if _, err := os.Stat(GAME_PATH + "/BepInEx"); err != nil {
if err != nil {
// install bepinex // install bepinex
DownloadBepinex() DownloadBepinex()
} }