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
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)
}

View File

@ -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()
}