style: lint
This commit is contained in:
parent
4f99e500c0
commit
464b8ef778
@ -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)
|
||||||
}
|
}
|
||||||
|
4
spire.go
4
spire.go
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user