Remove print statement from tools.RemoveMod (it unfortunately still doesn't work)

This commit is contained in:
rainyuu 2021-01-31 12:20:34 +01:00
parent 268f1b2e43
commit 222fa543b5

View File

@ -1,7 +1,6 @@
package tools package tools
import ( import (
"fmt"
"io/ioutil" "io/ioutil"
"log" "log"
"os" "os"
@ -83,9 +82,11 @@ func DownloadMod(depString string) (int, string, []string) {
// RemoveMod uninstalls a mod // RemoveMod uninstalls a mod
func RemoveMod(depString string) int { func RemoveMod(depString string) int {
// fmt.Println(depString)
status, mod := api.GetModData(depString) status, mod := api.GetModData(depString)
// fmt.Println(mod)
if status != 0 { if status != 0 {
fmt.Println("> Could not find the mod specified.") return 1
} }
modFolder := utils.SystemInfo.PluginDir + "/" + depString + "-" + mod.Versions[0].VersionNumber modFolder := utils.SystemInfo.PluginDir + "/" + depString + "-" + mod.Versions[0].VersionNumber