CurseForge: remove invalid comment

This commit is contained in:
comp500 2023-01-17 04:53:39 +00:00
parent 8937960d52
commit 94a74676c8

View File

@ -57,11 +57,11 @@ var installCmd = &cobra.Command{
if addonIDFlag != 0 { if addonIDFlag != 0 {
modID = addonIDFlag modID = addonIDFlag
} }
if (len(args) == 0 || len(args[0]) == 0) && modID == 0 { if (len(args) == 0 || len(args[0]) == 0) && modID == 0 {
fmt.Println("You must specify a project; with the ID flags, or by passing a URL, slug or search term directly.") fmt.Println("You must specify a project; with the ID flags, or by passing a URL, slug or search term directly.")
os.Exit(1) os.Exit(1)
} }
// If there are more than 1 argument, go straight to searching - URLs/Slugs should not have spaces!
if modID == 0 && len(args) == 1 { if modID == 0 && len(args) == 1 {
parsedGame, parsedCategory, parsedSlug, parsedFileID, err := parseSlugOrUrl(args[0]) parsedGame, parsedCategory, parsedSlug, parsedFileID, err := parseSlugOrUrl(args[0])
if err != nil { if err != nil {